Merge pull request #894 from darksidelemm/testing

More fixes for PS15 sondes.
pull/898/head
Mark Jessop 2024-06-18 11:10:27 +09:30 zatwierdzone przez GitHub
commit 00ad5a4ff6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -186,6 +186,8 @@ def short_type_lookup(type_name):
return "Vaisala " + type_name
elif type_name.startswith("DFM"):
return "Graw " + type_name
elif type_name == "PS15":
return "Graw PS15"
elif type_name.startswith("M10"):
return "Meteomodem M10"
elif type_name.startswith("M20"):
@ -260,6 +262,8 @@ def short_short_type_lookup(type_name):
return "WXR301"
elif type_name == "WXRPN9":
return "WXR301(PN9)"
elif type_name == "PS15":
return "PS15"
else:
return "Unknown"
@ -273,7 +277,7 @@ def generate_aprs_id(sonde_data):
if ("RS92" in sonde_data["type"]) or ("RS41" in sonde_data["type"]):
# We can use the Vaisala sonde ID directly.
_object_name = sonde_data["id"].strip()
elif "DFM" in sonde_data["type"]:
elif "DFM" in sonde_data["type"] or "PS15" in sonde_data["type"]:
# As per agreement with other radiosonde decoding software developers, we will now
# use the DFM serial number verbatim in the APRS ID, prefixed with 'D'.
# For recent DFM sondes, this will result in a object ID of: Dyynnnnnn
@ -288,9 +292,6 @@ def generate_aprs_id(sonde_data):
# Create the object name
_object_name = "D%d" % _dfm_id
# Convert to upper-case hex, and take the last 5 nibbles.
_id_suffix = hex(_dfm_id).upper()[-5:]
elif "M10" in sonde_data["type"]:
# Use the generated id same as dxlAPRS
_object_name = sonde_data["aprsid"]