Adjust sondemonitor block version (#94)

Co-authored-by: Mark Jessop <darkside@Marks-MacBook-Pro.local>
This commit is contained in:
Mark Jessop 2023-01-19 17:12:14 +10:30 committed by GitHub
parent 12296f1450
commit 63222dd134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,8 +292,8 @@ def telemetry_filter(telemetry):
return (False,f"Autorx version is out of date and doesn't handle iMet-1 and iMet-4 radiosondes correctly. Please update to 1.5.9 or later")
if "DFM" in telemetry["type"]:
if telemetry["software_name"] == "SondeMonitor":
if parse_sondemonitor_version(telemetry["software_version"]) < (6,2,7,9):
return (False,f"SondeMonitor version is out of date and doesn't handle DFM radiosondes correctly. Please update to 6.2.7.9 or later")
if parse_sondemonitor_version(telemetry["software_version"]) < (6,2,8,4):
return (False,f"SondeMonitor version is out of date and doesn't handle DFM radiosondes correctly. Please update to 6.2.8.4 or later")
if "dev" in telemetry:
return (False, "All checks passed however payload contained dev flag so will not be uploaded to the database")