< 272017-06-28⋎29 >

Topic for #farmOS is: farmOS (farmos.org) is a free open source, web-based farm management system, built on Drupal. Please report bugs to github.com/farmOS/farmOS/issues - Subscribe to the farmOS mailing list at: lists.eruditium.org/cgi-bin/mailman/listSet by mstenta on 2017-03-16 at 16:48
03:00*JustTB has quit (Ping timeout: 276 seconds)
03:15*JustTB has joined
09:39*permagriculture has joined
09:39permagriculturehi anyone here?
09:52*permagriculture has quit (Quit: Page closed)
12:23svennalways lurking
12:28*mstenta has quit (Ping timeout: 260 seconds)
12:37*mstenta has joined
12:51mstentasvenn: same :-)
12:52mstentaif only they would hang around and wait for an answer...
12:52mstentai wasn't awake yet
12:54*trentf has quit (Remote host closed the connection)
12:57svennthere's a new serious kid on the precision farming block: agopengps
12:57svennI have now bought my first ever windows10 tablet to test it out
12:58mstentaoh neat, it's open source? github.com/farmerbriantee/AgOpenGPS
12:58svennthe soft itself is open source
12:58svennand I just downloaded the zip to the tablet and it runs
12:58svennI just got to connect my gps when I get back home
12:58mstentawhat are you using it for? reading the readme now...
12:59svennI will use it for guidance on my second tractor
13:00svennI will test out the features of self-driving, but I have to build the hardware first
13:01svennbut like all farm guidance stuff, it needs a back-end to collect all the works for later reference
13:02svennthat is where farmos comes in.
13:29*permagriculture has joined
13:30mstentahi permagriculture
13:30permagricultureHi mstenta
13:30mstentawelcome to #farmOS :-)
13:31permagricultureI was just wondering with the hosted service, is there a way to get automated backups? Dropbox/ Google Drive etc?
13:31mstentapermagriculture: with Farmier you mean? no, not yet - but that's a great idea... i will add that to my todo list...
13:32permagricultureOK great..
13:32mstentaone thing that i already plan to do is make it possible for users to export their database so that they can set it up locally for testing or development
13:32permagricultureAssuming it's a fairly standard Drupal install are there RSS feeds?
13:33mstentapermagriculture: farmOS comes with the RESTful Web Services module
13:33mstentaso you can use that to pull data in JSON or XML format
13:34mstentabut you need to authenticate, it doesn't make that data available to the public
13:34permagricultureOK will google that a bit..
13:34permagriculturepeople i'm working with want spreadsheets (god knows why)
13:35mstentahere is the module page, which has documentation for it: www.drupal.org/project/restws
13:35mstentawe have an outstanding todo in the queue to add more farmOS-specific documentation on farmOS.org: github.com/farmOS/farmOS.org/issues/4
13:35mstentapermagriculture: spreadsheets of what?
13:36mstentathe most recent release (7.x-1.0-beta13) has CSV exports
13:36permagricultureI don't think it matters, more of a cargo cult worship..
13:36permagriculturebut movements/ plantings etc would be good
13:37permagricultureIf there was RSS was going to write to google sheet via ifttt.com/
13:37mstentathe data stored in farmOS is not publicly visible, so RSS isn't really an option
13:38mstentayou can manually download CSVs of plantings (and other assets), and movements (and other logs)
13:38mstentai'm going to be building a CSV importer very soon
13:39permagriculturecould I wget the csv?
13:41mstentano, it's generated dynamically when you click the CSV button
13:41mstentaJSON or XML via the RESTWS module is your best bet for programatically accessing the data
13:43permagricultureOK will have a look into it..
13:47mstentapermagriculture: there is a way to use HTTP Basic Authentication to access the restws endpoints, so you don't have to program the authentication and cookie storage and all that yourself
13:47mstentai could enable that module on your hosted site if you want to try that out
13:47permagricultureyes please that would be good
13:48permagriculturenibleyleaves.farmos.net
13:49mstentapermagriculture: done.
13:49permagriculture so something like nibleyleaves.farmos.net/node.json?type=p should work?
13:50mstentahere is the readme for the restws module: cgit.drupalcode.org/restws/tree/README.t
13:50mstentaand here is the readme for the basic auth submodule: cgit.drupalcode.org/restws/tree/restws_b
13:50permagricultureThanks
13:51mstentapermagriculture: almost...
13:51mstentafarmOS doesn't use nodes
13:52mstentathe entity type for plantings is "farm_asset"
13:52mstentanibleyleaves.farmos.net/farm_asset.json
13:52mstentasimilarly, logs would be nibleyleaves.farmos.net/log.json
13:52permagricultureOK will will have a look
13:52mstentai'm not sure about filtering... the ?type=planting doesn't seem to work... looking to see how to do that...
13:53mstentaoh wait yes it does...
13:53mstentanibleyleaves.farmos.net/farm_asset.json?
13:54mstentasimilar for logs, except note that log types are prefixed with "farm_"
13:54mstentaso for observations, it would be:
13:54mstentanibleyleaves.farmos.net/log.json?type=fa
13:54mstentaand harvests:
13:54mstentanibleyleaves.farmos.net/log.json?type=fa
13:55mstentaregarding basic auth... you will need to create a new user (probably with the Farm Worker role) in your site with a name that starts with "restws"
13:55mstenta(per the readme: cgit.drupalcode.org/restws/tree/restws_b)
13:56mstentathat's a good way to do it... in case you ever need to revoke access from that user
13:56mstentaif you want read-only access, create a user with the Farm Viewer role (that is probably the safest, if you only need to retrieve data, and don't need to create data)
13:57permagricultureOK back in a second..
13:57mstentapermagriculture: FYI not many people are using the REST API in farmOS yet, that i'm aware of, so you might be one of the first to debug things... so let me know if you hit issues, it will be good to learn from the process and maybe document findings on farmOS.org
13:57mstentaok, i'll brb too
14:48*permagriculture has quit (Ping timeout: 260 seconds)
15:44*trentf has joined
17:45*mstenta has quit (Ping timeout: 240 seconds)
17:55*mstenta has joined
18:25*JustTB has quit (Ping timeout: 240 seconds)

< 272017-06-28⋏29 >