Commit Graph

22 Commits (9b3b7e1856ecc7c55f3b5bcee8e8834ba314aec5)

Author SHA1 Message Date
Rob Pilling bf0eb8a2f3 sched: fix snoozing an alarm after the snooze period
We now set the snooze period from when the user hits snooze,
not when the alarm sounded.

For example:
- Snooze period is 10 mins
- Alarm sounds for 11 mins
- User hits snooze
- Alarm is scheduled/snoozed until 23 hours 59 minutes in the future
2024-04-22 20:26:16 +01:00
Erik Andresen db32e9df6e alarm, sched: Fix #3281
Fix wrap around when snoozed through midnight
2024-03-21 22:06:13 +01:00
Rob Pilling 40b718ed49 sched: add setting to buzz forever when alarm is fired 2024-02-28 22:35:58 +00:00
Rob Pilling 27bf21466a multitimer: revert triggercheck, tailcall sched after hardmode alarms 2023-06-30 21:05:42 +01:00
Rob Pilling c930936b39 sched: drop alarm index guard 2023-06-30 18:09:11 +01:00
Rob Pilling b56865a136 multitimer/sched: use triggercheck for pre-alarm code 2023-06-11 22:17:42 +01:00
Rob Pilling 508808cc3d sched: only splice out alarm, if it's present in alarms 2023-06-07 17:57:00 +01:00
Gordon Williams 82efd6b29e correction based on https://github.com/espruino/BangleApps/pull/2529#discussion_r1130158703 2023-03-09 09:44:34 +00:00
Gordon Williams e87e3f137b
Added handling for 'rp:true' and also debug message in case of invalid repeat type 2023-03-07 11:41:21 +00:00
lauzonhomeschool a1097a3eea [sched, alarm] allow dated Event repeat 2023-01-24 22:10:31 -05:00
Kedlub 1839f7d52d Alarm snooze and dismiss events 2023-01-18 14:11:35 +01:00
Alessandro Cocco a8116f3e49 [Scheduler] Add "delete timer at expiration" option 2022-06-19 16:19:01 +02:00
Alessandro Cocco f5f1cc7523 [Scheduler] Improve code readability 2022-06-19 16:19:01 +02:00
Alessandro Cocco 061fec4826 [Scheduler] Show timer using formatDuration 2022-06-03 17:29:57 +02:00
Alessandro Cocco 9ac54459b4 [Scheduler] Fallback to configured default patterns 2022-06-03 17:29:57 +02:00
Alessandro Cocco 94690a81ee Add new time_utils module and move some functions from sched module to it 2022-05-13 15:25:28 +02:00
Erik Andresen 8c048f321c Refactor some methods to scheduling library 2022-04-20 19:32:23 +02:00
Alessandro Cocco 9c9b48ce39 [Scheduler] Integrate the new settings into the code 2022-04-20 14:35:51 +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 333d405342 sleep -> snooze, and add images for alarms/timers 2022-04-06 09:13:35 +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