Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-19 14:33:01 -07:00
parent 5ba199bd17
commit 3587c9df37
+3 -2
View File
@@ -215,6 +215,7 @@ def get_node_location(number):
if interface.nodes:
for node in interface.nodes.values():
if number == node['num']:
print (node)
if 'latitudeI' in node:
lat = node['latitudeI']
lon = node['longitudeI']
@@ -223,9 +224,9 @@ def get_node_location(number):
return position
else:
print (f"{log_timestamp()} System: No location data for {number}")
return "0,0"
return [0,0]
else:
return "0,0"
return [0,0]
def send_message(message,ch,nodeid):
if nodeid == 0: