From 75ca095f22a6cb6b86971dd4ee2b65a4691c9386 Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Wed, 31 May 2023 12:57:08 -0400 Subject: [PATCH] Added ground stations. --- owrx/toolbox.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/owrx/toolbox.py b/owrx/toolbox.py index ef062482..500aa0f0 100644 --- a/owrx/toolbox.py +++ b/owrx/toolbox.py @@ -414,6 +414,9 @@ class HfdlParser(TextParser): # Add aircraft info, if present if "ac_info" in data and "icao" in data["ac_info"]: out["aircraft"] = data["ac_info"]["icao"].strip() + # Source might be a ground station + if data["src"]["type"] == "Ground station": + out["flight"] = "GS-%d" % data["src"]["id"] # Parse HFNPDU is present if "hfnpdu" in data: self.parseHfnpdu(data["hfnpdu"], out)