[BJv2, 0%] Modify Alarm&Timer widget so it also show "stopwatch" esp "stopwatch touch". #3417
Replies: 9 comments
-
Posted at 2023-10-25 by @gfwilliams 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 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-10-25 by ccchan hi, thx for suggestion. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-10-25 by @thyttan Thanks for the tip, wasn't aware of that widget! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-10-31 by ccchan 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 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-10-31 by @thyttan
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: espruino/BangleApps#1555. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-11-01 by ccchan this library doesn't include the stopwatch? i'll then see should i modify specific for "stopwatch touch" or modify the library then. thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-11-01 by @thyttan Ah, sorry. Yes I don't think stopwatch functionality is included in |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-11-21 by ccchan 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 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2024-12-18 by Humpelstilzchen Wouldn't a seperate widget for stopwatch touch be more useful? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-10-23 by ccchan
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.
Beta Was this translation helpful? Give feedback.
All reactions