-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlatest.log
More file actions
480 lines (257 loc) · 26.6 KB
/
latest.log
File metadata and controls
480 lines (257 loc) · 26.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
[2025-08-16 11:26:13][__main__][main][INFO] Here we go!
[2025-08-16 11:26:13][__main__][import_and_collect_runners][SUCCESS] Successfully loaded run function from radar
[2025-08-16 11:26:14][__main__][import_and_collect_runners][SUCCESS] Successfully loaded run function from humiture
[2025-08-16 11:26:14][__main__][import_and_collect_runners][SUCCESS] Successfully loaded run function from urgent_button
[2025-08-16 11:26:14][__main__][import_and_collect_runners][SUCCESS] Successfully loaded run function from smbus
[2025-08-16 11:26:14][__main__][import_and_collect_runners][SUCCESS] Successfully loaded run function from wheel
[2025-08-16 11:26:14][__main__][import_and_collect_runners][ERROR] Error loading module locator
Traceback (most recent call last):
File "/root/new/PiSensor/main.py", line 174, in <module>
main()
└ <function main at 0x7faf783e20>
File "/root/new/PiSensor/main.py", line 131, in main
runners = import_and_collect_runners(driver_path)
│ └ '/root/new/PiSensor/modules'
└ <function import_and_collect_runners at 0x7faf783ba0>
> File "/root/new/PiSensor/main.py", line 82, in import_and_collect_runners
spec.loader.exec_module(module)
│ │ │ └ <module 'locator' from '/root/new/PiSensor/modules/locator/__init__.py'>
│ │ └ <function _LoaderBasics.exec_module at 0x7fbd3a1da0>
│ └ <_frozen_importlib_external.SourceFileLoader object at 0x7fae283550>
└ ModuleSpec(name='locator', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fae283550>, origin='/root/new/PiS...
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/root/new/PiSensor/modules/locator/__init__.py", line 2, in <module>
import websockets
ModuleNotFoundError: No module named 'websockets'
[2025-08-16 11:26:14][__main__][import_and_collect_runners][SUCCESS] Successfully loaded run function from rocker
[2025-08-16 11:26:15][__main__][import_and_collect_runners][SUCCESS] Successfully loaded run function from heart
[2025-08-16 11:26:15][__main__][main][INFO] Starting 8 modules
[2025-08-16 11:26:15][core.message_queue][get_queue][INFO] Created queue: QueueNames.HEART
[2025-08-16 11:26:15][core.message_queue][get_queue][INFO] Created queue: QueueNames.STEP_MOTOR
[2025-08-16 11:26:15][__main__][run_module][INFO] Starting module: urgent_button
[2025-08-16 11:26:15][__main__][run_module][INFO] Starting module: smbus
[2025-08-16 11:26:15][core.message_queue][get_queue][INFO] Created queue: QueueNames.RADAR
[2025-08-16 11:26:15][radar][run][INFO] [Radar]Here we go!
[2025-08-16 11:26:15][core.message_queue][get_queue][INFO] Created queue: QueueNames.WHEEL
[2025-08-16 11:26:15][step_motor][run][INFO] Stepper motor module started.
[2025-08-16 11:26:15][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:15][rocker][run][INFO] Rocker module started.
[2025-08-16 11:26:15][core.message_queue][get_queue][INFO] Created queue: QueueNames.MAIN
[2025-08-16 11:26:15][__main__][run_module][ERROR] Error in module radar
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 995, in _bootstrap
self._bootstrap_inner()
│ └ <function Thread._bootstrap_inner at 0x7fbce6f420>
└ <Thread(Thread-6 (run_module), started daemon 547725635968)>
│ └ <function Thread.run at 0x7fbce6f100>
└ <Thread(Thread-6 (run_module), started daemon 547725635968)>
File "/usr/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
│ │ │ │ │ └ {}
│ │ │ │ └ <Thread(Thread-6 (run_module), started daemon 547725635968)>
TypeError: radar() missing 1 required positional argument: 'ws'
[2025-08-16 11:26:15][__main__][run_module][INFO] Module wheel stopped
[2025-08-16 11:26:15][__main__][run_module][INFO] Module heart stopped
to establish a new connection: [Errno 111] Connection refused'))
[2025-08-16 11:26:15][core.message_queue][get_queue][INFO] Created queue: main_response
[2025-08-16 11:26:15][uvicorn.server][_serve][Level 20] Started server process [36235]
[2025-08-16 11:26:15][uvicorn.lifespan.on][startup][Level 20] Application startup complete.
[2025-08-16 11:26:15][uvicorn.server][_log_started_message][Level 20] Uvicorn running on http://localhost:10240 (Press CTRL+C to quit)
[2025-08-16 11:26:16][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:41340 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:17][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:19][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:19][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:41360 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:20][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:20][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:20][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:41374 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:20][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:41380 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:20][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:26:21][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:21][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:41390 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:22][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:22][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:22][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:41416 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:22][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:41418 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:22][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:26:23][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:41424 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:24][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:24][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:24][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:41438 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:26:25][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:56884 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:25][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:26:25][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:25][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:56892 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:26][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:26][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:26][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:56902 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:26:26][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:27][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:56920 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:27][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:26:27][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:28][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:28][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:56942 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:26:28][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:56946 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:29][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:29][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:56952 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:29][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:26:30][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:30][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:30][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:56972 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:26:30][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:31][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:32][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:32][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:32][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:57008 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:26:32][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:32][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:57010 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:33][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:34][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:34][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:26:35][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:35][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:52830 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:36][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:52840 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:37][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:38][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:38][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:38][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:38][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:52886 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:39][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:39][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:52896 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:40][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:40][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:52906 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:26:41][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:52926 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:41][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:26:41][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:41][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:52940 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:42][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:42][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:52954 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:26:42][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:43][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:52978 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:43][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:52990 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:44][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:53002 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:26:44][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:44][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:54626 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:45][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:45][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:54638 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:46][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:46][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:54656 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:26:46][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:54658 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:48][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:54674 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:48][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: htt
[2025-08-16 11:26:48][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:48][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:54678 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:26:48][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:48][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:54694 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:49][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:49][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:54700 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:50][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:50][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:50][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:54720 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:50][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:26:50][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:52][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:52][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:52][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:52][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:54772 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:52][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:26:53][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:53][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:54778 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:54][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:54][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:54][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:54][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:38362 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:55][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:26:55][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:55][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:38376 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:56][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:56][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:57][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:38396 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:57][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:26:57][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:26:57][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:38404 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:26:58][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:58][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:26:59][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:38420 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:26:59][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:27:00][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:00][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:00][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:38440 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:27:01][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:01][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:38454 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:02][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:02][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:38460 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:02][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:02][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:02][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:38480 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:27:03][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:03][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:38486 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:04][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:38502 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:04][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:27:04][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:04][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:06][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:06][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:06][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:06][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:60180 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:27:06][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:27:07][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:07][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:60188 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:08][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:08][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:60204 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:08][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:08][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:08][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:60216 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:27:08][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:27:09][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:09][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:60222 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:10][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:60238 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:10][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:12][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:12][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:60276 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:12][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:12][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:13][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:13][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:60286 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:13][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:60292 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:27:13][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:27:14][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:14][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:60294 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:14][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:14][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:14][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44494 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:27:15][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:15][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44506 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:27:15][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:27:16][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:16][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44520 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:16][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:16][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:16][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44534 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:27:17][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:18][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44552 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:27:18][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:18][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44564 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:18][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:18][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:18][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44566 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:27:19][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:19][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44574 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:20][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:20][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44590 - "POST /api/sensor/urgent_button HTTP/1.1" 200
[2025-08-16 11:27:20][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44604 - "POST /api/sensor/humiture HTTP/1.1" 422
[2025-08-16 11:27:20][core.http_client][send_sensor_data][ERROR] Error sending data for sensor 'humiture': 422 Client Error: Unprocessable Entity for url: http://localhost:10240/api/sensor/humiture
[2025-08-16 11:27:20][modules.smbus.smbus][read_pcf8574][ERROR] PCF8574 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:20][modules.smbus.smbus][read_ina226][ERROR] INA226 READ ERROR: [Errno 5] Input/output error
[2025-08-16 11:27:20][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44610 - "POST /api/sensor/smbus HTTP/1.1" 200
[2025-08-16 11:27:21][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:21][uvicorn.protocols.http.h11_impl][send][Level 20] ::1:44612 - "POST /api/sensor/urgent_button HTTP/1.1" 200
^C[2025-08-16 11:27:22][__main__][shutdown][INFO] Received shutdown signal, shutting down...
[2025-08-16 11:27:22][__main__][main][INFO] Main process ended
[2025-08-16 11:27:22][__main__][<module>][INFO] === Application terminated ===
[2025-08-16 11:27:22][urgent_button][run][INFO] Urgent button pressed.
[2025-08-16 11:27:22][wheel][wheel_thread][ERROR] Error in wheel thread: DigitalOutputDevice is closed or uninitialized
Exception in thread Thread-15 (wheel_thread):
[2025-08-16 11:27:22][rocker][run][ERROR] Error in rocker module: Button is closed or uninitialized
Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/pisensor-8mj9H3NO-py3.11/lib/python3.11/site-packages/gpiozero/output_devices.py", line 87, in _write