You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • You can set a date on which to fire as well as the time? https://github.com/espruino/BangleApps/b­lob/master/apps/sched/README.md#internal­s--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:

    require("sched").setAlarm("mytimer", {
      msg : "Wake up",
      timer : 10 * 60 * 1000 // 10 minutes
    });
    

    and not:

    require("sched").setAlarm("mytimer", {
      msg : "Wake up",
      t : 9 * 3600000 // 9 o'clock (in ms)
    });
    

    and:

    require("sched").setAlarm("mytimer", {
      msg : "Wake up",
      date : "2022-04-04",
      t : 9 * 3600000 // 9 o'clock (in ms)
    });
    
About

Avatar for Gordon @Gordon started