admin wrote:day/moth/year values for uptime don't have a meaningful implementation. At the moment the math applied to it is like for temperature.
Uptime is maybe an odd one?
The more I think about it the more I think maybe the current implementation is right, i.e. without a midnight reset.
In my example day1_data1_valuemin_num was 3.00, but maybe the Meteohub had been running for days at that point? To show a minimum of 3.00 sort of implies that at some point there was 3 hours between reboots!
The current arrangement shows the average, minimum, and maximum of the values visible on the System page so far during the day, which arguably makes more sense.
Maybe that
and a percentage uptime as mentioned by cbhiii?
Meteohub supports cumulative sensor types (like total rain). I will think how to adapt this. May be something like a duration measurement class has to be introduced... will take some time.
Yes, an 'accumulator' or 'counter' type would be nice (when you find the time).
Maybe 2 data values; a count and a rate?
Though maybe you'd rather keep these generic types to just one value which the implementor could then use in whatever combinations they wished (i.e. no reason why a plug-in might not populate both a data and a counter with values of different types based on readings from a single physical sensor, e.g. a lightning counter).