17.09.2022, 09:21
Hello there
I've been trying to find a good solution to determine the average temperature of the day. My idea was it to trigger a script whenever a new value is being sent. I would then add the value to a variable and divide it by the number of values. Shortly befor midnight I would then store the value and clear counter and sum.
I also looked a the log option, but I get the impression that I have very few log entries of any group address that I log.
How could I achieve that? If you can point me to a similar code sample that be very helpful.
Thanks a lot!
Cheers!
Martin
I've been trying to find a good solution to determine the average temperature of the day. My idea was it to trigger a script whenever a new value is being sent. I would then add the value to a variable and divide it by the number of values. Shortly befor midnight I would then store the value and clear counter and sum.
I also looked a the log option, but I get the impression that I have very few log entries of any group address that I log.
How could I achieve that? If you can point me to a similar code sample that be very helpful.
Thanks a lot!
Cheers!
Martin