19.02.2018, 19:01
(This post was last modified: 19.02.2018, 19:11 by Erwin van der Zwart.)
Hi,
See this article on how to set start - end range on trend fetching by using UNIX format timestamps:
http://www.openrb.com/docs/trends-new.htm
I don't think you can fetch smaller data set then 1 day, you have to get the values from the result yourself, when the trend resolution is 5 minutes you get a set of 288 points, then each 12 points are equal to 1 hour, so the points from 15:00 to 16:00 will be data[180] to data[191], when the trend resolution is set to 1 hour the point will be data[15]
BR,
Erwin
See this article on how to set start - end range on trend fetching by using UNIX format timestamps:
http://www.openrb.com/docs/trends-new.htm
I don't think you can fetch smaller data set then 1 day, you have to get the values from the result yourself, when the trend resolution is 5 minutes you get a set of 288 points, then each 12 points are equal to 1 hour, so the points from 15:00 to 16:00 will be data[180] to data[191], when the trend resolution is set to 1 hour the point will be data[15]
BR,
Erwin