< 022022-08-03⋎04 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
12:43*botlfarm[m] has joined
12:43botlfarm[m]Hey Everyone, Although not specifically a farmOS question I thought you all could point me in he right direction. I'm attempting to install Farmer Ed [google calendar module](github.com/Farmer-Eds-Shed/farm_calendar). It requires the [google api PHP client](www.drupal.org/project/google_api_client). I'm having trouble figuring out where to put the libraries folder this requires in my instillation.
12:46FarmerEd[m]For the API client or the calendar module?
12:46botlfarm[m]for the API client
12:48FarmerEd[m]composer require 'drupal/google_api_client:^4.2'
12:52botlfarm[m]Perfect! Thanks. I was trying to install it manually with no success. This worked
13:13FarmerEd[m]Great, I probably should add some setup instructions.
13:16FarmerEd[m]There is probably still a bit of work to be done, so feel free to give any feedback.
13:16FarmerEd[m]Have you Google API credentials? You'll need them to configure the API client, there is instructions on that on the modules page.
13:18botlfarm[m]I'm working on the API credentials now. The instructions were fairly strait forward, but getting an error at the authenticate step. Looks like "It may take 5 minutes to a few hours for settings to take effect"
13:30botlfarm[m]Looks like it was just a http vs https issue I was having. Got it set up and it works!! Thanks Farmer Ed . I got to run now but I will play with it later.
16:00*calbasi[m] has quit (Quit: You have been kicked for being idle)
16:00*margeo[m] has quit (Quit: You have been kicked for being idle)
21:28paul121[m]<FarmerEd[m]> "Great, I probably should add..." <- sounds like you need a composer dependency ;-)
21:31FarmerEd[m]That too....
21:31FarmerEd[m]There's still a bit of other work to do.
21:40FarmerEd[m]Mostly tidying up, like code that's copy and pasted that should be a single function.
21:41FarmerEd[m]I presume for composer I need to start using Drupals Git repo?
21:49paul121[m]<FarmerEd[m]> "I presume for composer I need to..." <- You don't have to. In the composer project (the composer file associated with the instance, not a single module) you can add multiple composer repositories. When you say `composer require x/y` these repositories are searched for matching packages
21:50paul121[m]We currently have a couple `farm_profile` modules that are not on Drupal.org. here is an example of how you include these repos in your composer project file:... (full message at libera.ems.host/_matrix/media/r0/downloa)
21:51paul121[m](notice `packages.drupal.org/8` - that's what makes the drupal modules available!)
21:52paul121[m]ah and oops. don't use `"type": "git"` - you have to have a Git SSH key configured. Instead it will be easier to use VCS
21:52paul121[m]github.com/mstenta/farm_profile_hylo/blo
21:53paul121[m]the profile modules are a good example - notice the composer `name` starts with the repo org name, not `drupal/*`
21:53paul121[m] * the profile modules are a good example - notice the composer `name` starts with the repo org name, not `drupal/*`
21:53paul121[m]github.com/mstenta/farm_profile_hylo/blo
21:56FarmerEd[m]That's a much more detailed response than I was expecting Paul, thanks very much I'll have a look into it properly when I'm back at my computer.
21:57paul121[m]it was an easy copy/paste :-)
21:59FarmerEd[m]That maybe so but it will save me some searching and head scratching.
22:04paul121[m]Also my `farm_contrib_template` repo: github.com/paul121/farm_contrib_template
22:04paul121[m]Your question is a good example of something that should be documented there. Both using composer with the simple github repo option, as well as putting on Drupal.org. Right now it is a TODO haha.
22:30mstenta[m]Great template for reference!
22:30mstenta[m]* ☝️Great template

< 022022-08-03⋏04 >