1
0
Fork 0
Commit Graph

8 Commits (689e6e74702dc1018daa22f7b242888ad3aece95)

Author SHA1 Message Date
Erik Andresen 1d22050dc6 sched: add day of week check to getActiveAlarms() 2022-05-04 22:58:45 +02:00
storm64 052c1694d2 [Sched] Correct `decodeTime(t)` rounding
Correct `decodeTime(t)` to return a more likely expected time:
- before: `require("sched").decodeTime(60*60*1000-1)` returns: `{ hrs: 0, mins: 60 }`
- after: `require("sched").decodeTime(60*60*1000-1)` returns: `{ hrs: 1, mins: 0 }`
2022-04-21 23:01:39 +02:00
Erik Andresen 8c048f321c Refactor some methods to scheduling library 2022-04-20 19:32:23 +02:00
Alessandro Cocco cb0913468f [Scheduler] Update metadata & changelog 2022-04-20 14:35:51 +02:00
storm64 9ab2fcdf31 sched: `getTimeToAlarm` check next dow if t<now
Fix undefined output of `getTimeToAlarm` on an alarm that is already in the past to check for the next dow instead of the actual dow.
>> add +1 to time.getDay() if alarm.t < currentTime
2022-04-08 21:24:24 +02:00
storm64 2c729af68c sched: Fix `getTimeToAlarm` for timers
Only set `last` for alarms to prevent a wrong output of `getTimeToAlarm` for a timer already used at same day.
2022-04-07 19:47:45 +02:00
Gordon Williams 1dd232ffce alarm fixes (fix #1667) 2022-04-07 15:47:01 +01:00
Gordon Williams 5c84ec9e2c Refactored alarm into separate 'sched' library/app 2022-04-04 15:49:45 +01:00