Merge pull request #897 from darksidelemm/testing

Fix uploading of PS15 telemetry to Sondehub
pull/898/head
Mark Jessop 2024-06-19 19:19:35 +09:30 zatwierdzone przez GitHub
commit d2c9af427b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 13 dodań i 1 usunięć

Wyświetl plik

@ -12,7 +12,7 @@ from queue import Queue
# MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus.
# PATCH - Small changes, or minor feature additions.
__version__ = "1.7.4-beta2"
__version__ = "1.7.4-beta3"
# Global Variables

Wyświetl plik

@ -168,6 +168,18 @@ class SondehubUploader(object):
# for our packets to pass the Sondehub z-check.
self.slower_uploads = True
elif telemetry["type"] == "PS15":
_output["manufacturer"] = "Graw"
_output["type"] = "PS-15"
_output["subtype"] = "PS-15"
_output["serial"] = telemetry["id"].split("-")[1]
if "dfmcode" in telemetry:
_output["dfmcode"] = telemetry["dfmcode"]
# We are handling DFM packets. We need a few more of these in an upload
# for our packets to pass the Sondehub z-check.
self.slower_uploads = True
elif telemetry["type"].startswith("M10") or telemetry["type"].startswith("M20"):
_output["manufacturer"] = "Meteomodem"
_output["type"] = telemetry["type"]