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.

Outside compensation curve
#8
For the outdoor temp combined with a curve i usually use a 3 days average, this can simply be done by attaching a trend to your measurement object and use this small script.

Code:
require('trends')
dateslastthreedays = {}
dateslastthreedays['start'] = os.date('*t', os.time() - (86400 * 4))
dateslastthreedays['end'] = os.date('*t', os.time() - (86400 * 1))
threedaysaverage = trends.fetchone('OUTDOOR TEMP', dateslastthreedays)
Reply


Messages In This Thread
Outside compensation curve - by oyvindnordbo - 04.12.2018, 07:13
RE: Outside compensation curve - by admin - 04.12.2018, 07:29
RE: Outside compensation curve - by admin - 04.12.2018, 09:20
RE: Outside compensation curve - by Daniel - 04.12.2018, 09:22
RE: Outside compensation curve - by merel - 04.12.2018, 13:45
RE: Outside compensation curve - by Erwin van der Zwart - 16.01.2025, 17:08
RE: Outside compensation curve - by admin - 17.01.2025, 08:18

Forum Jump: