ttwatch icon indicating copy to clipboard operation
ttwatch copied to clipboard

Config option to download 7 day ephemeris instead of 3 ?

Open ABelliqueux opened this issue 5 years ago • 4 comments

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");

ABelliqueux avatar Jan 15 '19 11:01 ABelliqueux

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.

ryanbinns avatar Jan 17 '19 10:01 ryanbinns

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.

Grimler91 avatar Feb 11 '19 09:02 Grimler91

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.

ryanbinns avatar Feb 11 '19 10:02 ryanbinns

@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.

dlenski avatar Feb 11 '19 18:02 dlenski