Status API

This commit is contained in:
Ian Renton
2025-09-27 17:07:55 +01:00
parent 9d9687adbf
commit 624a5fe28a
4 changed files with 33 additions and 13 deletions

View File

@@ -67,7 +67,7 @@ class DXCluster(Provider):
if match:
spot_time = datetime.strptime(match.group(5), "%H%MZ")
spot_datetime = datetime.combine(datetime.today(), spot_time.time()).replace(tzinfo=pytz.UTC)
spot = Spot(source="DX Cluster",
spot = Spot(source="Cluster",
dx_call=match.group(3),
de_call=match.group(1),
freq=float(match.group(2)),

View File

@@ -30,7 +30,7 @@ class GMA(HTTPProvider):
spot = Spot(source=self.name(),
dx_call=source_spot["ACTIVATOR"].upper(),
de_call=source_spot["SPOTTER"].upper(),
freq=float(source_spot["QRG"]),
freq=float(source_spot["QRG"]) if (source_spot["QRG"] != "") else None, # Seen GMA spots with no frequency
mode=source_spot["MODE"].upper(),
comment=source_spot["TEXT"],
sig_refs=[source_spot["REF"]],