small cron module for espruino

Posted on
  • https://github.com/pbrandt1/espruino-cron

    One interesting thing I noticed when writing this module is that using Array.sort on arrays larger than about 50 elements didn't work on the esp8266 wemos that I use, so I just wrote a custom sort function that does work.

    I'm new, and I'd like that thank everyone for making espruino so beginner-friendly :)

  • That's cool. Can you kick off multiple jobs? Is there a limit? I will be trying!

  • That looks great! Thanks!

  • Ollie, yes you can register multiple cron jobs, but I haven't tested the limits of how many fit in memory, or tested how much load it can handle before the somewhat naive scheduler starts missing triggers. I suppose it depends on your hardware. Happy hacking!

  • Wow - I like it - thanks for sharing !

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

small cron module for espruino

Posted by Avatar for pbrandt1 @pbrandt1

Actions