Update locationdata.py

This commit is contained in:
SpudGunMan
2025-10-23 12:01:56 -07:00
parent 55567815ef
commit ad1a8aa1ce
+6 -1
View File
@@ -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: