From 2a4190ec4a94c6441849050dca2e0db44435abf8 Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Fri, 28 Aug 2026 21:47:25 +0100 Subject: [PATCH] Fix GIRO data source. Release v2.0.3 --- core/constants.py | 2 +- providers/solarconditions/giroionosonde.py | 4 ++-- pyproject.toml | 2 +- templates/add_spot.html | 2 +- templates/alerts.html | 2 +- templates/bands.html | 4 ++-- templates/base.html | 10 +++++----- templates/conditions.html | 2 +- templates/map.html | 4 ++-- templates/spots.html | 4 ++-- templates/status.html | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/core/constants.py b/core/constants.py index b371848..0342e59 100644 --- a/core/constants.py +++ b/core/constants.py @@ -3,7 +3,7 @@ from data.band import Band from data.sig import SIG # General software -SOFTWARE_VERSION = "2.0.2" +SOFTWARE_VERSION = "2.0.3" # HTTP headers used for spot providers that use HTTP HTTP_HEADERS = {"User-Agent": f"Spothole v{SOFTWARE_VERSION} (operated by {SERVER_OWNER_CALLSIGN})"} diff --git a/providers/solarconditions/giroionosonde.py b/providers/solarconditions/giroionosonde.py index 06d862f..023ca23 100644 --- a/providers/solarconditions/giroionosonde.py +++ b/providers/solarconditions/giroionosonde.py @@ -20,7 +20,7 @@ POLL_INTERVAL = 7200 # To avoid looking up all stations in the GIRO system and working out which ones are providing live data, this has been # manually determined and a CSV provided of all the stations that we can query for live data. STATIONS_INDEX = "datafiles/didbase-stations.csv" -LGDC_URL = "https://lgdc.uml.edu/common/DIDBGetValues" +LGDC_URL = "https://lgdc.uml.edu/fastchar/getbest" HISTORY_HOURS = 24 @@ -140,7 +140,7 @@ class GIROIonosonde(SolarConditionsProvider): from_str = from_time.strftime("%Y.%m.%d+%H:%M:%S") to_str = to_time.strftime("%Y.%m.%d+%H:%M:%S") - url = f"{LGDC_URL}?ursiCode={ursi}&charName=foF2,MUFD,fmin&DMUF=3000&fromDate={from_str}&toDate={to_str}" + url = f"{LGDC_URL}?ursiCode={ursi}&charName=foF2,MUF%28D%29,fmin&DMUF=3000&fromDate={from_str}&toDate={to_str}" try: http_response = requests.get(url, headers=HTTP_HEADERS, timeout=(5, 15)) if not http_response.ok: diff --git a/pyproject.toml b/pyproject.toml index 3d3d5ec..7947f09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "Spothole" -version = "2.0.2" +version = "2.0.3" authors = [ { name="Ian Renton", email="ian@ianrenton.com" }, ] diff --git a/templates/add_spot.html b/templates/add_spot.html index 1df5bbf..082c3c6 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -76,7 +76,7 @@ - + diff --git a/templates/alerts.html b/templates/alerts.html index 74e837d..815fed2 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -84,7 +84,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index bded47a..8b1950b 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -76,8 +76,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index c432cbe..795674a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -15,10 +15,10 @@ window.fetchEventSource = fetchEventSource; - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index daefdf3..7b45b3e 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 838609d..c466e2d 100644 --- a/templates/map.html +++ b/templates/map.html @@ -113,8 +113,8 @@ const CARTODB_API_KEY = "{{ web_ui_options.get('cartodb_api_key', '') }}"; - - + + diff --git a/templates/spots.html b/templates/spots.html index 3312f9f..9615f26 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -113,8 +113,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index c611544..759190b 100644 --- a/templates/status.html +++ b/templates/status.html @@ -86,7 +86,7 @@ - +