Luminosity sensor added, APRSIS messages are now forwarded to MQTT

This commit is contained in:
marcel
2025-01-26 20:43:35 +01:00
parent 589f303a16
commit 7e2aa14f2a
8 changed files with 721 additions and 33 deletions

View File

@@ -193,7 +193,10 @@ class aprs_telemetry_to_mqtt:
# Configuration is done via the file pe1rxf_telemetry.yml
def publish_aprs_messages(self, source, ax_device, payload):
if self.config_file_settings['global']['publish_messages'] == 'YES':
#logger.debug('Check if message is for us.')
#logger.debug(self.config_file_settings['global']['publish_messages'])
if self.config_file_settings['global']['publish_messages'] == True:
#logger.debug('Configured to forward messages.')
mqtt_message = {}
@@ -209,6 +212,7 @@ class aprs_telemetry_to_mqtt:
# substrings: the first in empty, the second with the call of the ax25
# interface and the thirth with the message itself
split_message=payload.split(":")
#logger.debug(split_message)
if len(split_message) == 3:
#Remove spaces from destination call
split_message[1] = split_message[1].replace(" ", "")