Fixes for iMet+XDATA. Don't add -Ozone onto the end of types anymore.

pull/819/head
Mark Jessop 2023-10-02 15:52:27 +10:30
rodzic 4e8176b041
commit 8d14750c53
3 zmienionych plików z 9 dodań i 3 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.1-beta1"
__version__ = "1.7.1-beta2"
# Global Variables

Wyświetl plik

@ -1602,8 +1602,9 @@ class SondeDecoder(object):
# which is most likely an Ozone sensor (though could be something different!)
# We append -Ozone to the sonde type field to indicate this.
# TODO: Decode device ID from aux field to indicate what the aux payload actually is?
if "aux" in _telemetry:
_telemetry["type"] += "-Ozone"
# 2023-10 - disabled this addition. Can be too misleading. -XDATA now appended on the web interface only.
# if "aux" in _telemetry:
# _telemetry["type"] += "-Ozone"
# iMet Specific actions
if self.sonde_type == "IMET":

Wyświetl plik

@ -719,6 +719,11 @@
sonde_id_data.other += sonde_id_data.batt.toFixed(1) + " V";
}
if (sonde_id_data.hasOwnProperty('aux')){
sonde_id_data.type += "-XDATA";
}
telem_data.push(sonde_id_data);
});
}