< 052018-12-06⋎07 >

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
01:48*cabbage_root has joined
01:49*cabbage_root has quit (Client Quit)
13:32*DennisClicWorld[ has joined
13:44*amonteclicworld[ has joined
13:44amonteclicworld[Hey
13:44amonteclicworld[Any help with the FarmOS API
13:45mstenta[m]Hi amonte@clic.world
13:45mstenta[m]What are you trying to do?
13:45amonteclicworld[Hey mstenta
13:45amonteclicworld[am trying to build an App ontop of Farm os to use it for our Farming community
13:45mstenta[m]Awesome!
13:46mstenta[m]Have you checked out the native/client projects that are getting started?
13:46mstenta[m]github.com/farmOS/farmOS-native
13:46mstenta[m]github.com/farmOS/farmOS-client
13:46amonteclicworld[but i cant see how to work with the given CURL requests
13:47mstenta[m]What language are you working with?
13:47amonteclicworld[Android-Java
13:47mstenta[m]The curl commands are just examples to demonstrate the basic requirements and structure for a request
13:47mstenta[m]So in Android/Java you would use whatever native HTTP request library is available
13:47amonteclicworld[I was trying to run via postman but it failed
13:48amonteclicworld[keeps returning the page
13:48mstenta[m]`curl` is just a Linux command for doing that in a terminal - but similar tools exist in different languages and frameworks
13:48mstenta[m]Oh ok
13:48amonteclicworld[Alright let me try to study the android example
13:49amonteclicworld[So the wrapper is just a layer
13:50mstenta[m]The native and client code are written in Javascript, and using Cordova to wrap it in an Android/iOS app
13:50amonteclicworld[which i can use to access the FarmOS
13:50amonteclicworld[is that right?
13:50mstenta[m]So it's not exactly the same as what you are trying to do I think
13:51mstenta[m]But the basic concepts would be the same
13:51amonteclicworld[so what do you advise
13:51mstenta[m]It depends on what you want to do, ultimately
13:52mstenta[m]It looks like this might be what you want? developer.android.com/training/volley/re
13:52mstenta[m](But I'm not an Android developer, so I'm not 100% sure...)
13:53mstenta[m]The client app is simple and focused right now - starting will the ability to add generic observation logs from your phone
13:53mstenta[m]It works offline, and will sync logs to your farmOS when internet is available
13:54mstenta[m]So if that is similar to your needs, you may want to give it a try
13:54mstenta[m]At the very least, you can see what it does, and then look at how it works if that is helpful
13:58amonteclicworld[Thats alright
13:58amonteclicworld[and i already have that
13:58amonteclicworld[but the requests require the cookie data for auth right?
13:59amonteclicworld[Thats my challenge in http requests
13:59jgaehring[m]I'm trying to remember, but I think I was getting similar errors in Postman.... might have been alleviated by installing the cors module on the server
13:59amonteclicworld[jgaehring: i guess but am running it on hosted farmos.net
14:00amonteclicworld[so running any requests produces nothing
14:00amonteclicworld[since i cant even login
14:00amonteclicworld[to get the token
14:00amonteclicworld[and using https seems i cant store it
14:00jgaehring[m]i could also be wrong... been a while since i was testing in Postman
14:02jgaehring[m]yea i've been testing against a local install in a Docker container, mostly
14:05jgaehring[m]how's your javascript? would it help you to see the AJAX calls in the Cordova app's codebase?
14:05jgaehring[m]github.com/farmOS/farmOS-native/blob/mas
14:05amonteclicworld[maybe let look into it
14:05amonteclicworld[thanks
16:26*cpm has joined
20:18*cpm has quit (Quit: Leaving)

< 052018-12-06⋏07 >