20.06.2024, 13:16
Hi
I have pool water temperature currently captured as a trend with a resolution of 5 minutes.
I've seen the following info https://kb.logicmachine.net/libraries/trends/ and have the beginnings of a script
Using my existing 5 minute data, is it possible with a different 'resolution' value to aggregate the data - for example to retrieve as 15minute data - without creating a separate trend log?
Also can I narrow the retrieval of the data to the last 6 hours instead of 24?
Many thanks in advance
Kind Regards
James
I have pool water temperature currently captured as a trend with a resolution of 5 minutes.
I've seen the following info https://kb.logicmachine.net/libraries/trends/ and have the beginnings of a script
Code:
require('trends')
dates = {
['start'] = { year = 2024, month = 6, day = 19 },
['end'] = { year = 2024, month = 6, day = 20 },
}
data = trends.fetch('Pool Water Temperature', dates, 0, true)
log(data)
Using my existing 5 minute data, is it possible with a different 'resolution' value to aggregate the data - for example to retrieve as 15minute data - without creating a separate trend log?
Also can I narrow the retrieval of the data to the last 6 hours instead of 24?
Many thanks in advance
Kind Regards
James