I searched the docs but maybe / hopefully I just missed the correct "search" words.
I look for the espruino/bangle event to register on when the hardware time is set/updated.
Background: You have a bangle clock face that renders a date. Date rendering is only required at next day switch, so you use a timeout.
After battery drain the date is wrong (1970/1/1). You sync the date from an external source e.g. android.
As it is a timeout based on measure time elapsed and not a "at"-event e.g. (1970/1/2) the timeout seems not to get triggered. The "at" event would/should of course triffer when date is cahnged to future.
Therefore I want to register on the event to render an update immediately after the hw clock/rtc was (hardly) changed.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I searched the docs but maybe / hopefully I just missed the correct "search" words.
I look for the espruino/bangle event to register on when the hardware time is set/updated.
Background: You have a bangle clock face that renders a date. Date rendering is only required at next day switch, so you use a timeout.
After battery drain the date is wrong (1970/1/1). You sync the date from an external source e.g. android.
As it is a timeout based on measure time elapsed and not a "at"-event e.g. (1970/1/2) the timeout seems not to get triggered. The "at" event would/should of course triffer when date is cahnged to future.
Therefore I want to register on the event to render an update immediately after the hw clock/rtc was (hardly) changed.