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.

Get last 20 minutes average value of object
#7
(14.06.2022, 07:43)Daniel Wrote: I would just calculate how many seconds are in current hour and use it for pastTime like this

Code:
now = os.date('*t')
pastTime = now.min*60 +now.sec

That seems to be doing what I wanted, I only had to speed up polling rate to get more accurate values.
Thanks again DanielĀ  Smile
Reply


Messages In This Thread
RE: Get last 20 minutes average value of object - by Odd Egil Aasheim - 25.06.2022, 11:31

Forum Jump: