-
• #2
How about installing the 'clockinfo widget'? 'clockinfo' can include alarms, timers and stopwatch right now - so all you need to do is install that widget and the relevant other clockinfo apps and you can swipe through them
-
• #3
hi, thx for suggestion.
however i found the "stopwatch touch" very attractive,
i'll rather contact the author for more info as he claimed also keen to make it into the widget, thanks -
• #4
Thanks for the tip, wasn't aware of that widget!
-
• #5
is there a central organization place/scheme for the alarms, timers, stopwatch or indeep each of these apps work on their own?
i mean, bangle got several stopwatch apps. will a single widget grab info from all of them by some system calls or indeep these stopwatches currently only work on their own?
thanks
-
• #6
is there a central organization place/scheme for the alarms, timers, stopwatch or indeep each of these apps work on their own?
There is the scheduler library that should be used for these things. Some older apps have still not been refactored with it.
The scheduler was discussed here prior to its introduction: https://github.com/espruino/BangleApps/issues/1555.
-
• #7
this library doesn't include the stopwatch?
i'll then see should i modify specific for "stopwatch touch" or modify the library then.
thanks
-
• #8
Ah, sorry. Yes I don't think stopwatch functionality is included in
sched
library. I guess stopwatches aren't really used for scheduling things 😉 -
• #9
able to display the current time + alarm/ETA, timer, stopwatch etc is superior to classic casio watches.
but currenlty those timer/stop watchers work on their own, and may even stop counting when swiped back to the clock. in future should have centralized them?
thanks
-
• #10
Wouldn't a seperate widget for stopwatch touch be more useful?
hi,
the "alarm and timer ETA" widget currently dont show stopwatch e.g. "stopwatch touch" at the status bar.
I would like to change that.
indeed with the "digital clock widget", we can have clock in status bar and stopwatch in the app;
so i wish at the clock face, we can have time + stopwatch too.
ps: this beat the legends like casio f-91, which can only show either clock OR stopwatch, but not both:
I briefly asked gpt4,
let's see how good it is later.
:
You can extend the widget to support the stopwatch by modifying the code to consider the stopwatch's state and time. Here is a modified version of your provided code that should incorporate the stopwatch's display into the widget. The main idea is to read the stopwatch's state and remaining time from its JSON storage and display it on the widget if it's running.
loadSettings
function to also load the stopwatch settings.draw
function to consider the stopwatch state and display its time if it's running.Here is the modified version of your provided widget code to incorporate the stopwatch:
Changes made:
next
variable accordingly.You might need to adjust the display format or layout as per your needs. Ensure to test thoroughly to make sure it works as expected and doesn’t interfere with other functionalities.