add frequency to explorer heard stations

This commit is contained in:
DJ2LS 2023-04-22 11:02:40 +02:00
parent 1975eacff5
commit db2fe28843

View file

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