mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-08 09:53:02 +02:00
Update mesh-bot.py
This commit is contained in:
+1
-1
@@ -216,11 +216,11 @@ def get_node_location(number):
|
||||
for node in interface.nodes.values():
|
||||
if number == node['num']:
|
||||
if 'position' in node:
|
||||
print (node['position'])
|
||||
for data in node['position']:
|
||||
print (data['latitude'])
|
||||
print (data['longitude'])
|
||||
print (f"{log_timestamp()} System: Using location data for {number}")
|
||||
position = [1,1]
|
||||
return position
|
||||
else:
|
||||
print (f"{log_timestamp()} System: No location data for {number}")
|
||||
|
||||
Reference in New Issue
Block a user