Netatmo Rain Meter 24 hours vs daily values
Posted: Tuesday 11 May 2021 15:27
Hi All,
just wondering if anybody could give me the best approach for the following:
I am working on a LUA script to read off the Netatmo API.
The Netatmo API gives a value which is Rain for the past 24 hours, hence a rolling value.
I thought I had it right, but after cross checking the past few days I realised that in many cases I am getting two consecutive days with the same rain value.
The Domoticz counter seems to require a reset at the end of the day - so if I understsand correctly, the cumulative value should be zero at midnight?
Which would be the best and most robust way (including accounting for crashes and reboots, if possible) to convert a rolling value such as this to one which can be accepted by Domoticz?
thanks!
just wondering if anybody could give me the best approach for the following:
I am working on a LUA script to read off the Netatmo API.
The Netatmo API gives a value which is Rain for the past 24 hours, hence a rolling value.
I thought I had it right, but after cross checking the past few days I realised that in many cases I am getting two consecutive days with the same rain value.
The Domoticz counter seems to require a reset at the end of the day - so if I understsand correctly, the cumulative value should be zero at midnight?
Which would be the best and most robust way (including accounting for crashes and reboots, if possible) to convert a rolling value such as this to one which can be accepted by Domoticz?
thanks!