mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-06 01:41:45 +02:00
Update locationdata.py
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user