< 232019-02-24⋎25 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
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:51mstenta[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:51mstenta[m]I'm not sure where to start that discussion, since it is higher level than any of the individual repositories.
19:52mstenta[m]I suppose we could do it in github.com/farmOS/farmOS/issues/
19:53jgaehring[m]sure, happy to do a call any time too
19:53jgaehring[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:54mstenta[m]ok cool
19:54mstenta[m]that would be a great start actually
19:54mstenta[m]i was thinking about breaking farmOS.php out of farm_sync, and setting it up as an official PHP Packagist project
19:55mstenta[m]maybe your farmOS.js documentation would be the best place to start all of this, actually
19:55mstenta[m]i can use that (and discussion with you) to try to bring farmOS.php in sync with that
19:55mstenta[m]and add that to the documentation as well
19:56mstenta[m]and once we have those two semi-standardized implementations, we can model farmOS.py off of them
19:56jgaehring[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:57mstenta[m]cool
19:57mstenta[m]yea, i'd love to (eventually) have docs similar to Stripe
19:57mstenta[m]stripe.com/docs/libraries
19:57mstenta[m]which explain the general methods available in all the libraries, and have example code in each
19:58mstenta[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:59mstenta[m]Oops this is the Stripe link I meat to post: stripe.com/docs/api
19:59mstenta[m]meant*
20:01jgaehring[m]cool, yea, I love the idea of having docs like that, and the parallel API's that make that possible
22:06paul121[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:07paul121[m]Having Python available would make things fun :)
22:11mstenta[m]@paul121:matrix.org: the client has a farmOS.js lib built in that abstracts API communication with the farmOS server
22:11mstenta[m]So we're talking about breaking that out to a separate repo
22:11mstenta[m]So that it can become a npm package
22:12mstenta[m]And I made a similar library recently in a Drupal module, which could also live on its own as a PHP package
22:12mstenta[m]So we're talking about standardizing those two
22:13mstenta[m]And then using them as a basis for other libraries like a Python variant
22:13mstenta[m]Basically to make it easy for other applications to integrate with farmOS
22:14mstenta[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:16mstenta[m]> Having Python available would make things fun :)
22:16mstenta[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:17paul121[m]Awesome. Makes sense! Python especially for some easier data analysis
22:18paul121[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:19mstenta[m]github.com/mstenta/farm_sync
22:19mstenta[m]Yea - so it's a pretty basic module right now. And it's for Drupal 8 (farmOS is D7).
22:19mstenta[m]The module basically provides two things:
22:19mstenta[m]1) A farmOS.php class that abstracts API communication (this is the piece I want to split out).
22:20mstenta[m]2) A Drupal form that uses the library to sync areas from a farmOS into the local D8 database.
22:20mstenta[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:21mstenta[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:21mstenta[m]But it's general enough to be used in other contexts as well.
22:22mstenta[m]Here's the PHP class specifically, as it is now:
22:22mstenta[m]github.com/mstenta/farm_sync/blob/8.x-1.
22:23paul121[m]Neat. I'll take a look later, just popping in on my lunch. Will be cool to see the API come together
22:24paul121[m]Generalize it all!
22:24mstenta[m]Yes yes! :-D
22:24mstenta[m]PS I owe you an email... ;-)
22:24mstenta[m]Hoping to get to that this week.
22:24mstenta[m]Crazy with new baby and all :-)
22:26paul121[m]No worries, I can imagine
22:26paul121[m]I'm busy moving into a new place, have my own *little* adulting to occupy my time
22:27mstenta[m]Cool cool - moving is a lot of work - and sometime fun
22:27mstenta[m]Hope it's going well
22:28paul121[m]It's exciting! Will be good once internet is hooked up! Ha!
22:29paul121[m]Back to work. Be in touch
22:33mstenta[m]Haha yea that's always one of the first priorities!
22:33mstenta[m]Good luck!
22:55*JustTB has quit (Quit: Leaving.)
23:47*JustTB has joined

< 232019-02-24⋏25 >