From ad1a8aa1ce0822b253d589e6326351305ef7ed68 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 23 Oct 2025 12:01:56 -0700 Subject: [PATCH] Update locationdata.py --- modules/locationdata.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/locationdata.py b/modules/locationdata.py index 9c9631b..a5acdbc 100644 --- a/modules/locationdata.py +++ b/modules/locationdata.py @@ -1096,7 +1096,12 @@ def log_locationData_toMap(userID, location, message): logger.error(f"Failed to log location for {userID}: {e}") return False -def mapHandler(command, userID, location): +def mapHandler(userID, deviceID, channel_number, message): + from modules.system import get_node_location + command = message[len("map"):].strip() + location = get_node_location(userID, deviceID) + lat = location[0] + lon = location[1] """ Handles 'map' commands from meshbot. Usage: