highfly enhancements

This commit is contained in:
SpudGunMan
2025-05-21 16:43:56 -07:00
parent 895fc3fd37
commit 1be13be92a
4 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -982,7 +982,7 @@ def consumeMetadata(packet, rxNode=0):
# if altitude is over 2000 send a log and message for high-flying nodes
if position_data.get('altitude', 0) > highfly_altitude and highfly_enabled:
logger.warning(f"System: High Altitude {position_data['altitude']}m on Device: {rxNode} NodeID: {nodeID}")
send_message(f"High Altitude {position_data['altitude']}m on Device: {rxNode} NodeID: {nodeID}", secure_channel, 0, rxNode)
send_message(f"High Altitude {position_data['altitude']}m on Device: {rxNode} NodeID: {nodeID}", highfly_channel, 0, rxNode)
time.sleep(responseDelay)
# Keep the positionMetadata dictionary at a maximum size of 20