Open ABelliqueux opened 5 years ago
I have added a command line option to switch to a 7-day ephemeris (-7
or --eph7days
) and an associated config file option (Ephemeris7Days = true
). This works for both the standalone program and the daemon. It is still 3-days by default.
Does the watch use a 7 day ephemeris or does it "expire" after 3 days? @dlenski experimented with it and reported that the watch only seemed to accept a 3 day ephemeris, see bottom of tt_bluetooth.md Normal operation.
In my testing, it accepted the file and seemed to work properly. I haven't actually tested it to see if the GPS still locks quickly after more than 3 days, since I plug the watch in overnight and it automatically updates as soon as it's plugged in.
@dlenski experimented with it and reported that the watch only seemed to accept a 3 day ephemeris, see bottom of tt_bluetooth.md Normal operation.
Yes indeed.
I no longer have a device to test with, but when I did I found that the original Runner v1 would sometimes crash after having a 7-day ephemeris file pushed to it. I found the whole thing surprisingly cranky and unreliable so I eventually settled on just mimicking the original firmware.
Hi, Is there a configuration option to download the 7 days ephemeris instead of the default 3 days ? IMHO, It would make sense to implement one if not or to switch to 7 days by default . Right now, I have to rely on another software to upload the 7d ephemeris to the watch. Maybe it is not as trivial as I think it is. Cheers and thanks for this great software.
EDIT: After going through the code I figured you just have to change the code in https://github.com/ryanbinns/ttwatch/blob/master/src/update_gps.c , line 26 :
/* get 3 days ephemeris */
url = replace(url, "{DAYS}", "3");
and replace the "3" with "7" :
url = replace(url, "{DAYS}", "3");