Update mesh_bot.py

This commit is contained in:
SpudGunMan
2024-12-11 21:14:46 -08:00
parent d453c3cac1
commit 33c8d4c0ad
+2 -1
View File
@@ -850,7 +850,8 @@ def handle_whois(message, deviceID, channel_number, message_from_id):
location = get_node_location(seenNodes[i]['nodeID'], deviceID, channel_number)
msg += f"Ch: {seenNodes[i]['channel']}, Int: {seenNodes[i]['rxInterface']}"
msg += f"Lat: {location[0]}, Lon: {location[1]}\n"
msg += f"Loc: {where_am_i(str(location[0]), str(location[1]))}\n"
if location != [latitudeValue, longitudeValue]:
msg += f"Loc: {where_am_i(str(location[0]), str(location[1]))}\n"
return msg