Hi
I have one problem to get the amount of rain during the day using the Netatmo binding. When I get the data for the day from database the value will differ from the value shown in the Netatmo app (0.7 in OH vs. 1.1 in Netatmo). I currently do persistance for every change. Is there any problem with this strategy for this usecase?
Edit: After reading the doku again I’ve found the solution myself… So the correct response should have been RTFM.
Yes, I did. But only after I’ve posted the message.
But one question, as you are already here: The day values, go they to today until now or for the last 24 hrs?
It appears to be for the current day (00:00 - 23:59) in your current timezone. The documentation doesn’t provide much help. The specific calls to Netatmo are at: https://dev.netatmo.com/doc/methods/getmeasure
We had rain yesterday, and it started raining shortly after midnight. Here’s what was in my logs (values in inches since I live in the US):
2015-11-16 23:34:51 - nRainToday state updated to 0.16548
2015-11-16 23:39:58 - nRainToday state updated to 0.16548
2015-11-16 23:45:03 - nRainToday state updated to 0.16548
2015-11-16 23:50:10 - nRainToday state updated to 0.16548
2015-11-16 23:55:16 - nRainToday state updated to 0.16548
2015-11-17 00:00:26 - nRainToday state updated to 0.16548
2015-11-17 00:05:31 - nRainToday state updated to 0.0000
2015-11-17 00:10:37 - nRainToday state updated to 0.0000
2015-11-17 00:15:43 - nRainToday state updated to 0.0000
2015-11-17 00:20:53 - nRainToday state updated to 0.0000
2015-11-17 00:25:59 - nRainToday state updated to 0.0000
2015-11-17 00:31:06 - nRainToday state updated to 0.0000
2015-11-17 00:36:18 - nRainToday state updated to 0.0000
2015-11-17 00:41:24 - nRainToday state updated to 0.0000
2015-11-17 00:46:30 - nRainToday state updated to 0.0000
2015-11-17 00:51:37 - nRainToday state updated to 0.0000
2015-11-17 00:56:44 - nRainToday state updated to 0.0000
2015-11-17 01:01:54 - nRainToday state updated to 0.00394
2015-11-17 01:07:05 - nRainToday state updated to 0.00394
2015-11-17 01:12:16 - nRainToday state updated to 0.00394
2015-11-17 01:17:22 - nRainToday state updated to 0.00394
2015-11-17 01:22:31 - nRainToday state updated to 0.00394
2015-11-17 01:27:40 - nRainToday state updated to 0.00394
...
2015-11-17 07:00:29 - nRainToday state updated to 0.52008
2015-11-17 07:05:38 - nRainToday state updated to 0.58706
2015-11-17 07:10:47 - nRainToday state updated to 0.58706
2015-11-17 07:15:53 - nRainToday state updated to 0.5910
2015-11-17 07:21:01 - nRainToday state updated to 0.5910
Depending on the timing, the first reading of the day still might contain the results from the previous day. But I don’t think this will be a problem if you always use the latest value returned from the binding.
Hi Rob
Thank you for your help, this will solve my problem.
Even if I really want to know the last 24hrs, it shouldn’t be a problem to calculate them using persistance (especially when I don’t need 100% accurate values )