From 621f4ad91658df91640ab8e69e41718b523bab48 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Fri, 23 May 2025 19:10:15 -0700 Subject: [PATCH] enhance --- README.md | 1 + modules/system.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9df8f8b..a19dcc6 100644 --- a/README.md +++ b/README.md @@ -482,6 +482,7 @@ I used ideas and snippets from other responder bots and want to call them out! - **Josh**: For more bashing on installer! - **dj505**: trying it on windows! - **mikecarper**: ideas, and testing. hamtest +- **c.merphy360**: high altitude alerts - **Cisien, bitflip, **Woof**, **propstg**, **trs2982**, **Josh** and Hailo1999**: For testing and feature ideas on Discord and GitHub. - **Meshtastic Discord Community**: For tossing out ideas and testing code. diff --git a/modules/system.py b/modules/system.py index 5611a7a..324bbc1 100644 --- a/modules/system.py +++ b/modules/system.py @@ -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.info(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}", highfly_channel, 0, rxNode) + send_message(f"High Altitude {position_data['altitude']}m on Device:{rxNode} Node:{get_name_from_number(nodeID,'short',rxNode)}", highfly_channel, 0, rxNode) time.sleep(responseDelay) # Keep the positionMetadata dictionary at a maximum size of 20 @@ -1157,7 +1157,7 @@ async def retry_interface(nodeID): if interface_type == 'serial': globals()[f'interface{nodeID}'] = meshtastic.serial_interface.SerialInterface(globals().get(f'port{nodeID}')) elif interface_type == 'tcp': - globals()[f'interface{nodeID}'] = meshtastic.tcp_interface.TCPInterface(globals().get(f'hostname{nodeID}')) + globals()[f'interface{nodeID}'] = meshtastic.tcp_interface.TCPInterface(globals().get(f'host{nodeID}')) elif interface_type == 'ble': globals()[f'interface{nodeID}'] = meshtastic.ble_interface.BLEInterface(globals().get(f'mac{nodeID}')) logger.debug(f"System: Interface{nodeID} Opened!")