Commit Graph

114 Commits (bf106b8c0c294161b49eb2a2bc12bd31d0049156)

Author SHA1 Message Date
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
Alessandro Cocco 9c9b48ce39 [Scheduler] Integrate the new settings into the code 2022-04-20 14:35:51 +02:00
Alessandro Cocco a84c1d4f77 [Scheduler] Add Settings page 2022-04-20 14:35:50 +02:00
Alessandro Cocco b0a43413c8 [Scheduler] Export new functions
- newDefaultAlarm
- newDefaultTimer
- get/setSettings
2022-04-20 14:35:50 +02:00
storm64 c4b7c798d2 sched: Ensure dow wrap, Sa(6)+1 = Su(0) 2022-04-09 14:46:08 +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 486586022e docs 2022-04-06 11:45:14 +01:00
Gordon Williams 333d405342 sleep -> snooze, and add images for alarms/timers 2022-04-06 09:13:35 +01:00
Gordon Williams 67facc692d fix https://github.com/espruino/BangleApps/issues/1555#issuecomment-1087784581 2022-04-05 10:59:13 +01:00
Gordon Williams 25aafe1ccf more refactoring to try and reduce code duplication 2022-04-04 16:58:17 +01:00
Gordon Williams 5c84ec9e2c Refactored alarm into separate 'sched' library/app 2022-04-04 15:49:45 +01:00