It may be possible to make it much simpler.
The GPS chip already provides the time about 1-2 seconds after switching on (even without fix).
I wrote an app, which turns on GPS every 4 hours, sets the clock if necessary and then turns off the GPS again.
If no time is received within 10 seconds, the GPS is also switched off.
A log file is written to measure the deviations and possibly make adjustments in the rhythm (this must be deleted manually).
Unfortunately I am not that experienced in writing js. I would be happy if someone could review my PR (https://github.com/espruino/BangleApps/pull/1342).
What sort of drift have you noticed so far between the two? Aren't the crystals in the GPS and Bluetooth at the same frequency (32.768 kHz)?
@BartS23 started
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.
It may be possible to make it much simpler.
The GPS chip already provides the time about 1-2 seconds after switching on (even without fix).
I wrote an app, which turns on GPS every 4 hours, sets the clock if necessary and then turns off the GPS again.
If no time is received within 10 seconds, the GPS is also switched off.
A log file is written to measure the deviations and possibly make adjustments in the rhythm (this must be deleted manually).
Unfortunately I am not that experienced in writing js.
I would be happy if someone could review my PR (https://github.com/espruino/BangleApps/pull/1342).