From 2babd5818103b65f4c43935f2d2d1dd6e51d2176 Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Thu, 12 Dec 2024 20:01:35 +1030 Subject: [PATCH] Update almanac download URL --- auto_rx/autorx/gps.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/auto_rx/autorx/gps.py b/auto_rx/autorx/gps.py index 79226d8..b92a0fe 100644 --- a/auto_rx/autorx/gps.py +++ b/auto_rx/autorx/gps.py @@ -59,10 +59,13 @@ def get_ephemeris(destination="ephemeris.dat"): def get_almanac(destination="almanac.txt", timeout=20): - """ Download the latest GPS almanac file from the US Coast Guard website. """ + """ + Download the latest GPS almanac file from the US Coast Guard website. + URL updated 2024-12-12 + """ try: _r = requests.get( - "https://www.navcen.uscg.gov/?pageName=currentAlmanac&format=sem", + "https://www.navcen.uscg.gov/sites/default/files/gps/almanac/current_sem.al3", timeout=timeout, ) data = _r.text