This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Trend Data
#1
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

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
Reply


Messages In This Thread
Trend Data - by jamesng - 20.06.2024, 13:16
RE: Trend Data - by admin - 20.06.2024, 13:22
RE: Trend Data - by jamesng - 21.06.2024, 09:59
RE: Trend Data - by jamesng - 25.06.2024, 02:53
RE: Trend Data - by admin - 25.06.2024, 06:52
RE: Trend Data - by jamesng - 25.06.2024, 07:19
RE: Trend Data - by admin - 25.06.2024, 07:32
RE: Trend Data - by jamesng - 25.06.2024, 07:57

Forum Jump: