From db2fe28843c280bcba9040ca34f9bdc7a75758d1 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Sat, 22 Apr 2023 11:02:40 +0200 Subject: [PATCH] add frequency to explorer heard stations --- tnc/explorer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tnc/explorer.py b/tnc/explorer.py index 4a48d9d1..aaf6d3ee 100644 --- a/tnc/explorer.py +++ b/tnc/explorer.py @@ -51,11 +51,12 @@ class explorer(): callsign = str(i[0], "UTF-8") grid = str(i[1], "UTF-8") timestamp = i[2] + frequency = i[6] try: snr = i[4].split("/")[1] except AttributeError: snr = str(i[4]) - station_data["lastheard"].append({"callsign": callsign, "grid": grid, "snr": snr, "timestamp": timestamp}) + station_data["lastheard"].append({"callsign": callsign, "grid": grid, "snr": snr, "timestamp": timestamp, "frequency": frequency}) except Exception as e: log.debug("[EXPLORER] not publishing station", e=e)