maximum temperature .. over a period
Looking to populate a sk path with the maximum temperature (taken from an existing path) over a period (eg “max temp today”)
Q: ive looked thru plugins, but cant immediately see any that do this?
I could do it with Nodered ( eg check once per minute & update path accordingly)
just checking if ive misssed something obvious in either server or a plugin capabilty?
2 Replies
i'd probably do this with node-red, BUT not by polling.
subscribe to the path you want and output a new value if it is over a stored max value (and store it as a new max)
add a signal that outputs when you want the max to reset and reset the max to a really low value when that signal fires
https://cookbook.nodered.org/basic/trigger-at-interval
thanks, yep i think (with a bit of chatgpt help) i ended up with pretty much this outcome, and just used the native updates to the temperature path, to trigger the funcion node to do the check/update et al.