Merge pull request #956 from darksidelemm/testing

Update almanac download URL
pull/957/head
Mark Jessop 2024-12-12 20:02:16 +10:30 zatwierdzone przez GitHub
commit 7eacfd9fe3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

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