| 12:43 | * | botlfarm[m] has joined |
| 12:43 | botlfarm[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:46 | FarmerEd[m] | For the API client or the calendar module? |
| 12:46 | botlfarm[m] | for the API client |
| 12:48 | FarmerEd[m] | composer require 'drupal/google_api_client:^4.2' |
| 12:52 | botlfarm[m] | Perfect! Thanks. I was trying to install it manually with no success. This worked |
| 13:13 | FarmerEd[m] | Great, I probably should add some setup instructions. |
| 13:16 | FarmerEd[m] | There is probably still a bit of work to be done, so feel free to give any feedback. |
| 13:16 | FarmerEd[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:18 | botlfarm[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:30 | botlfarm[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:28 | paul121[m] | <FarmerEd[m]> "Great, I probably should add..." <- sounds like you need a composer dependency ;-) |
| 21:31 | FarmerEd[m] | That too.... |
| 21:31 | FarmerEd[m] | There's still a bit of other work to do. |
| 21:40 | FarmerEd[m] | Mostly tidying up, like code that's copy and pasted that should be a single function. |
| 21:41 | FarmerEd[m] | I presume for composer I need to start using Drupals Git repo? |
| 21:49 | paul121[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:50 | paul121[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:51 | paul121[m] | (notice `packages.drupal.org/8` - that's what makes the drupal modules available!) |
| 21:52 | paul121[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:52 | paul121[m] | github.com/mstenta/farm_profile_hylo/blo |
| 21:53 | paul121[m] | the profile modules are a good example - notice the composer `name` starts with the repo org name, not `drupal/*` |
| 21:53 | paul121[m] | * the profile modules are a good example - notice the composer `name` starts with the repo org name, not `drupal/*` |
| 21:53 | paul121[m] | github.com/mstenta/farm_profile_hylo/blo |
| 21:56 | FarmerEd[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:57 | paul121[m] | it was an easy copy/paste :-) |
| 21:59 | FarmerEd[m] | That maybe so but it will save me some searching and head scratching. |
| 22:04 | paul121[m] | Also my `farm_contrib_template` repo: github.com/paul121/farm_contrib_template |
| 22:04 | paul121[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:30 | mstenta[m] | Great template for reference! |
| 22:30 | mstenta[m] | * ☝️Great template |