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