25.06.2022, 11:31
(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Ā