I’ve placed a sensor in my garden and integrated it into OH. By now, these values are persisted to an InfluxDB on every change.
Currently I’m working on a python rule in which I want to process the highest measured outdoor temperature per day. But I could not find a way yet, to achieve this with a single command like maximumSince().
Alternative solutions that already came to my mind:
Calculate the maximum at midnight and persist that value, too
Build a InfluxDB query dynamically and use the REST API
Use my Node-RED instance to build a simple API just to get the values out of InfluxDB
The docs explain how one can find the maximum value over a given period, e.g. 5 days (=1 value). But how to get the maximum value of each single one of the last 5 days (5 values)?
My goal is to calculate the average of the maxima.