Update mesh_bot.py

This commit is contained in:
Kelly
2026-07-13 20:08:05 -07:00
parent 6007085290
commit c404511dd4
+3
View File
@@ -311,7 +311,10 @@ def handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM, chann
msg += " [F]"
if (float(snr) != 0 or float(rssi) != 0) and "Hop" not in hop:
noiseFloor = localTelemetryData[deviceID].get('noiseFloor', 0)
msg += f"\nSNR:{snr} RSSI:{rssi}"
if noiseFloor != 0:
msg += f" NF:{round(noiseFloor, 2)}"
elif "Hop" in hop:
# janky, remove the words Gateway or MQTT if present
hop = hop.replace("Gateway", "").replace("Direct", "").replace("MQTT", "").strip()