From 832bc4cdba15a4b1b4841893d118d5878036cd0e Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Wed, 19 Jun 2024 19:18:20 +0930 Subject: [PATCH 1/2] Fix uploading of PS15 telemetry to Sondehub --- auto_rx/autorx/__init__.py | 2 +- auto_rx/autorx/sondehub.py | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/auto_rx/autorx/__init__.py b/auto_rx/autorx/__init__.py index 06ebd54..5dee6df 100644 --- a/auto_rx/autorx/__init__.py +++ b/auto_rx/autorx/__init__.py @@ -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 diff --git a/auto_rx/autorx/sondehub.py b/auto_rx/autorx/sondehub.py index 804a925..aed7d99 100644 --- a/auto_rx/autorx/sondehub.py +++ b/auto_rx/autorx/sondehub.py @@ -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"] = telemetry["type"] + _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"] From e503b751a32b0a5257de8d832add8d79e9d997ae Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Wed, 19 Jun 2024 19:19:13 +0930 Subject: [PATCH 2/2] Fix uploading of PS15 telemetry to Sondehub --- auto_rx/autorx/sondehub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_rx/autorx/sondehub.py b/auto_rx/autorx/sondehub.py index aed7d99..58edcf4 100644 --- a/auto_rx/autorx/sondehub.py +++ b/auto_rx/autorx/sondehub.py @@ -171,7 +171,7 @@ class SondehubUploader(object): elif telemetry["type"] == "PS15": _output["manufacturer"] = "Graw" _output["type"] = "PS-15" - _output["subtype"] = telemetry["type"] + _output["subtype"] = "PS-15" _output["serial"] = telemetry["id"].split("-")[1] if "dfmcode" in telemetry: _output["dfmcode"] = telemetry["dfmcode"]