mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-08 18:03:33 +02:00
Update mesh_bot.py
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user