mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-04 17:01:03 +02:00
Update mesh-bot.py
This commit is contained in:
+3
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user