Event scheduling past next 24 hours #5172
Replies: 1 comment
-
Posted at 2022-09-07 by @gfwilliams You can set a date on which to fire as well as the time? https://github.com/espruino/BangleApps/blob/master/apps/sched/README.md#internals--library So as far as I can see, really the only issue is rather than specifying a full timestamp when you schedule the alarm, you have to specify a date and then the time offset on that date - but it seems that's pretty easily to do without having to change the way the library works? Or is it just that the examples on that page only show the use of:
and not:
and:
Posted at 2022-09-08 by Subtlewolf I had no idea adding a date was a possibility. Not sure how I missed it, may have been the visual offset from "msg" that put it in the day of week section in my head. Possibly also carryover expectations from when I last looked the alarm app. I have to dig into it but it should cover my use cases. The only concern would be whether applications that don't handle dates may be confused. Posted at 2022-09-09 by @gfwilliams Ok, great! I'll update the README now to make it clearer
Hopefully not, because if they use the library functions to find out how long until the alarm runs, they should be ok. But if you find one that breaks, we need to fix it :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-09-07 by Subtlewolf
As it stands the scheduling library is highly alarm focused.
Would it make sense to extend it to encompass the scheduling of events with absolute timestamps?
Potential benefits:
Beta Was this translation helpful? Give feedback.
All reactions