new widget: Adjust Clock (BETA) #6090
Replies: 1 comment
-
Posted at 2022-02-20 by malaire Basic logic of how this widget reaches under 10 ms accuracy with
Posted at 2022-02-24 by Numerist To others: I am testing this widget. It is working well. Posted at 2022-02-25 by @gfwilliams @malaire just to add you mention:
But it actually works to 1/32768 second. Even so, reducing the amount of times you call it is probably good practice since it'll affect when timers get called Posted at 2022-02-25 by malaire But the documentation of
i.e. it discards fractional part of the given value and only uses integer seconds Posted at 2022-02-25 by malaire oh wow, looks like documentation is completely wrong and I didn't even think of testing this before as I trusted documentation. Posted at 2022-02-28 by @gfwilliams I'll update the docs for the next release. Generally the docs are fine but occasionally they do end up out of date, which I think is what must have happened here. Posted at 2023-01-21 by user140377 @malaire On the technical side we could maybe overwrite setTime() to get a callback when the clock is set. Posted at 2023-01-21 by malaire I don't think that would help much as drift depends a lot on temperature. (In my app loader there is a version which supports "Advanced PPM" which takes temperature into account, but configuring that is so difficult that I didn't publish that version into main app loader.) Posted at 2023-01-23 by @gfwilliams I guess if the temperature was logged as well as the drift, it might be more possible to work something out? Posted at 2023-01-23 by malaire For my "Advanced PPM" I recorded temperature and drift at multiple stable temperatures and then calculated needed quadratic equation from those datapoints. While it would be possible for widget to automatically follow temperature and detect when temperature has remained stable long enough, problem is that GPS only works outside and so you can't use e.g. freezer for stable cold temperature, or room temperature for another datapoint as I did. I don't see how user would be able to get the needed datapoints at multiple stable temperatures with GPS. (I guess it might be possible to calculate needed quadratic equation without stable temperatures but my math skills aren't enough for that.) Posted at 2023-06-12 by Mi Wanted to share the following observation and ask maybe other users to share their ppm value.
To my surprise all deviations were about 70 (+-2)ppm! And thanks for that widget. With so constant deviation we are looking forward to a pretty exact watch time in the future :-) Posted at 2023-06-13 by malaire
It depends. ppm is most stable around 20°C - 30°C, so if you mostly keep watch in wrist or in room temperature then you don't see much difference in ppm. But if you wear watch in winter on top of clothing the difference can be large. Here's graph of my Bangle 2 ppm from year ago: Attachments: Posted at 2023-06-16 by Mi Ah, ok, interesting, thanks! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-02-20 by malaire
I'm making a widget which adjusts Bangle.js 2 clock continually in the background to counter clock drift.
Widget doesn't attempt to determine clock drift in anyway. You need to measure clock drift yourself and then enter that value to the widget.
Beta version is available from my app loader for now as this still needs more testing before adding to main app loader.
I'll also publish source a bit later in GitHub as there are still few things I want to fix first. Of course code is available in my app loader (widget.js) if you want to see it. (Code includes some initial support for temperature correction but that isn't enabled yet.)
ps. Update interval setting doesn't do anything yet, interval is currently fixed to 10 seconds. That is the next bug I'll fix. (EDIT: Fixed in version
v0.00-beta-018
)Beta Was this translation helpful? Give feedback.
All reactions