From b85b7cecbb8356a9021bddf0835bec519508ecd8 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Jun 2024 14:39:24 -0700 Subject: [PATCH] Update mesh-bot.py --- mesh-bot.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mesh-bot.py b/mesh-bot.py index 4294ba0..73b4898 100644 --- a/mesh-bot.py +++ b/mesh-bot.py @@ -216,10 +216,11 @@ def get_node_location(number): for node in interface.nodes.values(): if number == node['num']: print (node) - if 'latitude' in node: - lat = node['position']['latitude'] - lon = node['position']['longitude'] - position = (lat,lon) + if 'position' in node: + print (node['position']) + #lat = node['position']['latitude'] + #lon = node['position']['longitude'] + #position = (lat,lon) print (f"{log_timestamp()} System: Found location data for {number}") return position else: