| 05:43 | * | garciadc3[m] has joined |
| 05:52 | * | svenn has quit (Ping timeout: 250 seconds) |
| 10:21 | * | svenn has joined |
| 16:22 | * | chewymuc[m] has joined |
| 16:23 | chewymuc[m] | Hi there, i'm not sure wether I'm right here, but I've a question concerning FarmOS and sensor assets. Does anyone can help me? |
| 16:30 | mstenta[m] | Hi chewymuc what's your question? |
| 16:30 | mstenta[m] | I'm currently cleaning my chimney, but feel free to ask and I'll answer when I can. :-) |
| 16:33 | chewymuc[m] | When I try to add a asset of type Sensor I can't find it in the list of asset types on the type selection list. |
| 16:35 | mstenta[m] | Ah yeah you need to enable the sensor modules |
| 16:35 | mstenta[m] | Are you hosting farmOS yourself? Or on farmier? |
| 16:35 | chewymuc[m] | How |
| 16:42 | chewymuc[m] | Because I want to test it first my farm is on farmier. |
| 16:43 | mstenta[m] | Ok what's your url? |
| 16:44 | chewymuc[m] | chewysfarm.farmos.net/farmier |
| 16:45 | mstenta[m] | Ok refresh - you should see it in the assets menu now |
| 16:48 | chewymuc[m] | Wau, that's cool. Thank you very much. Now I've 19 days left for my test. Best regards from Bavaria |
| 16:51 | mstenta[m] | Awesome! :-) |
| 16:55 | chewymuc[m] | thx |
| 17:33 | chewymuc[m] | sorry, may I ask you hopefully one more question? |
| 17:37 | mstenta[m] | Ask anytime chewymuc |
| 17:38 | chewymuc[m] | thx |
| 17:38 | chewymuc[m] | sensor seems to run well. i can add sensor data and I can receive them via my browser. |
| 17:40 | chewymuc[m] | I try to get all values greater or equal to timestamp by "...&start=1547917069". I allways get one json data entry |
| 17:41 | chewymuc[m] | I'm expecting more than one item in the list |
| 17:42 | mstenta[m] | farmos.org/guide/assets/sensors/ |
| 17:42 | mstenta[m] | Add `limit=X` to specify how many data points you want to return |
| 17:42 | mstenta[m] | It defaults to 1 |
| 17:43 | mstenta[m] | The API doesn't allow getting "all" data points, but you can use that to page through results |
| 17:43 | mstenta[m] | Also the `offset` parameter |
| 17:45 | chewymuc[m] | Wau, that helps. Thank you very much.aybe it would be a good idea to mention the default values or simply add a more complex example too. |
| 17:46 | mstenta[m] | In the docs it does say "Only the most recent data point will be returned, unless additional query parameters are provided for limiting/filtering the data." |
| 17:46 | mstenta[m] | But maybe that could be made more prominent |
| 17:47 | mstenta[m] | Here's the markdown file that creates that page if you're interested in working on it: github.com/farmOS/farmOS.org/blob/7.x-1. |
| 17:48 | chewymuc[m] | Great, thank you. Nice evening! |
| 19:05 | * | svenn has quit (Ping timeout: 246 seconds) |
| 19:17 | * | svenn has joined |