IRC logs for #farmOS, 2019-01-19 (GMT)

2019-01-18
2019-01-20
TimeNickMessage
[00:43:08]* garciadc3[m] has joined #farmos
[00:52:26]* svenn has quit (Ping timeout: 250 seconds)
[05:21:36]* svenn has joined #farmos
[11:22:07]* chewymuc[m] has joined #farmos
[11:23:50]<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?
[11:30:16]<mstenta[m]>Hi chewymuc what's your question?
[11:30:59]<mstenta[m]>I'm currently cleaning my chimney, but feel free to ask and I'll answer when I can. :-)
[11:33:15]<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.
[11:35:17]<mstenta[m]>Ah yeah you need to enable the sensor modules
[11:35:25]<mstenta[m]>Are you hosting farmOS yourself? Or on farmier?
[11:35:27]<chewymuc[m]>How
[11:42:21]<chewymuc[m]>Because I want to test it first my farm is on farmier.
[11:43:41]<mstenta[m]>Ok what's your url?
[11:44:04]<chewymuc[m]>https://chewysfarm.farmos.net/farmier
[11:45:29]<mstenta[m]>Ok refresh - you should see it in the assets menu now
[11:48:30]<chewymuc[m]>Wau, that's cool. Thank you very much. Now I've 19 days left for my test. Best regards from Bavaria
[11:51:31]<mstenta[m]>Awesome! :-)
[11:55:39]<chewymuc[m]>thx
[12:33:12]<chewymuc[m]>sorry, may I ask you hopefully one more question?
[12:37:19]<mstenta[m]>Ask anytime chewymuc
[12:38:07]<chewymuc[m]>thx
[12:38:36]<chewymuc[m]>sensor seems to run well. i can add sensor data and I can receive them via my browser.
[12:40:55]<chewymuc[m]>I try to get all values greater or equal to timestamp by "...&start=1547917069". I allways get one json data entry
[12:41:24]<chewymuc[m]>I'm expecting more than one item in the list
[12:42:03]<mstenta[m]>https://farmos.org/guide/assets/sensors/
[12:42:27]<mstenta[m]>Add `limit=X` to specify how many data points you want to return
[12:42:30]<mstenta[m]>It defaults to 1
[12:43:03]<mstenta[m]>The API doesn't allow getting "all" data points, but you can use that to page through results
[12:43:28]<mstenta[m]>Also the `offset` parameter
[12:45:38]<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.
[12:46:34]<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."
[12:46:39]<mstenta[m]>But maybe that could be made more prominent
[12:47:13]<mstenta[m]>Here's the markdown file that creates that page if you're interested in working on it: https://github.com/farmOS/farmOS.org/blob/7.x-1.x/docs/guide/assets/sens...
[12:48:40]<chewymuc[m]>Great, thank you. Nice evening!
[14:05:11]* svenn has quit (Ping timeout: 246 seconds)
[14:17:12]* svenn has joined #farmos