Fix jwt-token

This commit is contained in:
2025-09-07 16:33:49 +02:00
parent e0dace6165
commit e2ab2782d2
2 changed files with 68 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ def debug_device_status():
print(f" Name: {stockholm_device.get('name', 'N/A')}")
print(f" Active: {stockholm_device.get('is_active', False)}")
print(f" Approved: {stockholm_device.get('is_approved', False)}")
print(f" Coordinates: {stockholm_device.get('geo_lat', 'N/A')}, {stockholm_device.get('geo_lon', 'N/A')}")
print(f" Last Heartbeat: {stockholm_device.get('last_heartbeat', 'Never')}")
print(f" Heartbeat Interval: {stockholm_device.get('heartbeat_interval', 'Not set')} seconds")
@@ -131,7 +132,8 @@ def debug_device_status():
print("❌ Stockholm device not found")
print("Available devices:")
for device in devices:
print(f" - ID {device['id']}: {device.get('name', 'Unnamed')}")
coords = f"({device.get('geo_lat', 'N/A')}, {device.get('geo_lon', 'N/A')})"
print(f" - ID {device['id']}: {device.get('name', 'Unnamed')} at {coords}")
else:
print(f"❌ No devices found")
else: