-
• #2
That's cool. Can you kick off multiple jobs? Is there a limit? I will be trying!
-
• #3
That looks great! Thanks!
-
• #4
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!
-
• #5
Wow - I like it - thanks for sharing !
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 :)