Porównaj commity

...

7 Commity

Autor SHA1 Wiadomość Data
Mark Jessop 794a2c1e5a Add NEC_CQ73 2024-02-05 20:18:18 +10:30
Mark Jessop cfef63cb29 Add IT9EWK 2024-02-05 17:03:26 +10:30
Mark Jessop a63f1c9488 Add v2 ID 2024-02-05 17:02:50 +10:30
Mark Jessop 367fc797c7 add RXSONDE 2024-02-04 18:48:11 +10:30
Mark Jessop 5f63666f5f Handle 202 responses from Sondehub better. 2024-02-03 15:56:02 +10:30
Mark Jessop 80121545f3
Merge pull request #209 from xssfox/vk3fur
Add VK3FUR payload id
2024-02-03 14:29:24 +10:30
xssfox d38e55de42 Add VK3FUR payload id 2024-02-03 14:55:41 +11:00
4 zmienionych plików z 31 dodań i 2 usunięć

Wyświetl plik

@ -1 +1 @@
__version__ = "0.3.12"
__version__ = "0.3.13"

Wyświetl plik

@ -344,6 +344,30 @@ class SondehubAmateurUploader(object):
_upload_success = True
break
elif _req.status_code == 202:
# A 202 return code means there was some kind of data issue.
# We expect a response of the form {"message": "error message", "errors":[], "warnings":[]}
try:
_resp_json = _req.json()
for _error in _resp_json['errors']:
self.log_error("Payload data error: " + _error["error_message"])
if 'payload' in _error:
self.log_debug("Payload data associated with error: " + str(_error['payload']))
for _warning in _resp_json['warnings']:
self.log_warning("Payload data warning: " + _warning["warning_message"])
if 'payload' in _warning:
self.log_debug("Payload data associated with warning: " + str(_warning['payload']))
except Exception as e:
self.log_error("Error when parsing 202 response: %s" % str(e))
self.log_debug("Content of 202 response: %s" % _req.text)
_upload_success = True
break
elif _req.status_code in [500,501,502,503,504]:
# Server Error, Retry.
_retries += 1

Wyświetl plik

@ -390,6 +390,11 @@
510, F4EHY
511, IU0MUN
512, IZ0CGP
513, VK3FUR
514, RXSONDE
515, Molly-1
516, IT9EWK
517, NEC_CQ73
31415, HORUS-V2
31416, ITSWINDY
31417, HORUSRADMON

Wyświetl plik

@ -1,6 +1,6 @@
[tool.poetry]
name = "horusdemodlib"
version = "0.3.12"
version = "0.3.13"
description = "Project Horus HAB Telemetry Demodulators"
authors = ["Mark Jessop"]
license = "LGPL-2.1-or-later"