Next-Flip / Momentum-Firmware

🐬 Feature-rich, stable and customizable Flipper Firmware
https://momentum-fw.dev
GNU General Public License v3.0
4.28k stars 165 forks source link

JS: Timer Module #60

Open corrupt3k opened 6 months ago

corrupt3k commented 6 months ago

Description of the feature you're suggesting.

I have a script that runs indefinitely. It would be nice to easily show how long it has been running with the option to pause/resume it, if needed.

Anything else?

No response

Willy-JL commented 5 months ago

making the js runner app pause the script doesnt seem that intuitive or feasible. some way to get the current running time for the script might make sense. as for pausing, hard to say. this idea needs to be thought out more

Chrisrdouglas commented 5 months ago

I actually like the idea of being able to read the current time. Might be helpful to do something like checking if it's 5 PM on M-F then run a badusb script that makes my computer hibernate or something.

I'm sure other people could find uses for it

Willy-JL commented 1 month ago

this is actually being implemented in ofw https://github.com/flipperdevices/flipperzero-firmware/pull/3841

looks very promising and well structured