| 02:25 | * | JustTB has quit (Quit: Leaving.) |
| 04:25 | * | JustTB has joined |
| 10:05 | * | JustTB has quit (Quit: Leaving.) |
| 16:36 | * | JustTB has joined |
| 19:51 | mstenta[m] | jgaehring: if you have some time in the near future, i'd love to talk about farmOS.js, farmOS.php, and farmOS.py a little... and think through how we can make them as similar as possible |
| 19:51 | mstenta[m] | I'm not sure where to start that discussion, since it is higher level than any of the individual repositories. |
| 19:52 | mstenta[m] | I suppose we could do it in github.com/farmOS/farmOS/issues/ |
| 19:53 | jgaehring[m] | sure, happy to do a call any time too |
| 19:53 | jgaehring[m] | i was thinking tomorrow I'd start moving stuff over to the farmOS.js repo, and start documenting the API, as it is now at least |
| 19:54 | mstenta[m] | ok cool |
| 19:54 | mstenta[m] | that would be a great start actually |
| 19:54 | mstenta[m] | i was thinking about breaking farmOS.php out of farm_sync, and setting it up as an official PHP Packagist project |
| 19:55 | mstenta[m] | maybe your farmOS.js documentation would be the best place to start all of this, actually |
| 19:55 | mstenta[m] | i can use that (and discussion with you) to try to bring farmOS.php in sync with that |
| 19:55 | mstenta[m] | and add that to the documentation as well |
| 19:56 | mstenta[m] | and once we have those two semi-standardized implementations, we can model farmOS.py off of them |
| 19:56 | jgaehring[m] | yea, i'm sure once I document all the methods and their signatures there will be some things that stand out that we'd like to change, along with stuff to keep, etc |
| 19:57 | mstenta[m] | cool |
| 19:57 | mstenta[m] | yea, i'd love to (eventually) have docs similar to Stripe |
| 19:57 | mstenta[m] | stripe.com/docs/libraries |
| 19:57 | mstenta[m] | which explain the general methods available in all the libraries, and have example code in each |
| 19:58 | mstenta[m] | keeping all three in sync might be tricky... but maybe we can make a policy of always updating all three if anything needs to change |
| 19:59 | mstenta[m] | Oops this is the Stripe link I meat to post: stripe.com/docs/api |
| 19:59 | mstenta[m] | meant* |
| 20:01 | jgaehring[m] | cool, yea, I love the idea of having docs like that, and the parallel API's that make that possible |
| 22:06 | paul121[m] | Woah.. so, are versions of the farmOS.js and .php already in use in the client and server side? Just trying to standardize and document? |
| 22:07 | paul121[m] | Having Python available would make things fun :) |
| 22:11 | mstenta[m] | @paul121:matrix.org: the client has a farmOS.js lib built in that abstracts API communication with the farmOS server |
| 22:11 | mstenta[m] | So we're talking about breaking that out to a separate repo |
| 22:11 | mstenta[m] | So that it can become a npm package |
| 22:12 | mstenta[m] | And I made a similar library recently in a Drupal module, which could also live on its own as a PHP package |
| 22:12 | mstenta[m] | So we're talking about standardizing those two |
| 22:13 | mstenta[m] | And then using them as a basis for other libraries like a Python variant |
| 22:13 | mstenta[m] | Basically to make it easy for other applications to integrate with farmOS |
| 22:14 | mstenta[m] | So all of them would be client libraries... And meanwhile the server uses the REST module to serve API endpoints that they talk to |
| 22:16 | mstenta[m] | > Having Python available would make things fun :) |
| 22:16 | mstenta[m] | Yea! I'm excited about that idea too - so you could pull data from a farmOS site into Python and work with it. |
| 22:17 | paul121[m] | Awesome. Makes sense! Python especially for some easier data analysis |
| 22:18 | paul121[m] | I was wondering about the php one, what does the Drupal module provide? Could another Drupal site (not farmOS) include the module to pull info from farmOS? |
| 22:19 | mstenta[m] | github.com/mstenta/farm_sync |
| 22:19 | mstenta[m] | Yea - so it's a pretty basic module right now. And it's for Drupal 8 (farmOS is D7). |
| 22:19 | mstenta[m] | The module basically provides two things: |
| 22:19 | mstenta[m] | 1) A farmOS.php class that abstracts API communication (this is the piece I want to split out). |
| 22:20 | mstenta[m] | 2) A Drupal form that uses the library to sync areas from a farmOS into the local D8 database. |
| 22:20 | mstenta[m] | (It provides a simple database table to store the area name, id, and geometry - so you can use those locally if you want) |
| 22:21 | mstenta[m] | The specific use-case it was built for is to allow a separate CRM system to pull in area data from a farmOS instance. |
| 22:21 | mstenta[m] | But it's general enough to be used in other contexts as well. |
| 22:22 | mstenta[m] | Here's the PHP class specifically, as it is now: |
| 22:22 | mstenta[m] | github.com/mstenta/farm_sync/blob/8.x-1. |
| 22:23 | paul121[m] | Neat. I'll take a look later, just popping in on my lunch. Will be cool to see the API come together |
| 22:24 | paul121[m] | Generalize it all! |
| 22:24 | mstenta[m] | Yes yes! :-D |
| 22:24 | mstenta[m] | PS I owe you an email... ;-) |
| 22:24 | mstenta[m] | Hoping to get to that this week. |
| 22:24 | mstenta[m] | Crazy with new baby and all :-) |
| 22:26 | paul121[m] | No worries, I can imagine |
| 22:26 | paul121[m] | I'm busy moving into a new place, have my own *little* adulting to occupy my time |
| 22:27 | mstenta[m] | Cool cool - moving is a lot of work - and sometime fun |
| 22:27 | mstenta[m] | Hope it's going well |
| 22:28 | paul121[m] | It's exciting! Will be good once internet is hooked up! Ha! |
| 22:29 | paul121[m] | Back to work. Be in touch |
| 22:33 | mstenta[m] | Haha yea that's always one of the first priorities! |
| 22:33 | mstenta[m] | Good luck! |
| 22:55 | * | JustTB has quit (Quit: Leaving.) |
| 23:47 | * | JustTB has joined |