From 8d9a3478fe44c07f34d94f74d2006660eae31574 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Tue, 19 Aug 2025 19:14:49 +0200 Subject: [PATCH] Fix jwt-token --- health_probe_simulator.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/health_probe_simulator.py b/health_probe_simulator.py index 87a6d86..143a2e3 100644 --- a/health_probe_simulator.py +++ b/health_probe_simulator.py @@ -64,16 +64,8 @@ class DeviceProbeSimulator: try: payload = { - 'device_id': device_id, - 'timestamp': int(time.time()), - 'status': 'online', - 'system_info': { - 'cpu_usage': random.randint(20, 80), - 'memory_usage': random.randint(30, 90), - 'disk_usage': random.randint(40, 85), - 'temperature': random.randint(25, 65), - 'uptime': random.randint(3600, 86400) # 1 hour to 1 day - } + 'type': 'heartbeat', + 'key': device['unique_key'] # Use the device's unique key } response = self.session.post(