Korzystam z poradnika Pana Roberta Błaszczaka Supla Virtual Device – bramka dla czujników Xiaomi LYWSD03MMC. Instalacje przeprowadzalem na 2 osobnych urzadzeniach i w obu przypadkach efekt jest identyczny. Niestety nie znalazlem nigdzie odpowiedzi jak poradzic sobie z ponizszym problemem:
Zawartosc pliku /etc/supervisor/conf.d/mi-th0.conf:supervisorctl status
mi-th-0 FATAL Exited too quickly (process log may have details)
supla-virtual-device RUNNING pid 1565, uptime 0:00:16
Bezposrenie polecenie z lini komend dziala poprawnie[program:mi-th-0]
command=python3 ~/supla-virtual-device/LYWSD03MMC.py --device A4:C1:38:0B:9C:E8 --battery --round --debounce --name th0 --callback save-to-file.sh
diectory=/home/pi/supla-mi-th
autostart=true
autorestart=true
user=pi
tail -f /var/log/supervisor/supervisord.log:python3 ~/supla-virtual-device/LYWSD03MMC.py --device A4:C1:38:0B:9C:E8 --battery --round --debounce --name th0 --callback save-to-file.sh
---------------------------------------------
MiTemperature2 / ATC Thermometer version 5.0
---------------------------------------------
Please read README.md in this folder. Latest version is available at https://github.com/JsBergbau/MiTemperature2#readme
This file explains very detailed about the usage and covers everything you need to know as user.
Trying to connect to A4:C1:38:0B:9C:E8
Temperature: 21.9
Humidity: 33
Battery voltage: 3.059 V
Battery level: 96
/home/pi/supla-virtual-device/save-to-file.sh sensorname,temperature,humidity,voltage,batteryLevel,timestamp th0 21.9 33 3.059 96 1648140191
Czy ktos sobie z tym poradzil i moglby podpowiedziec co trzeba zrobic?2022-03-24 16:44:07,919 INFO waiting for supla-virtual-device to die
2022-03-24 16:44:07,926 INFO stopped: supla-virtual-device (exit status 0)
2022-03-24 16:44:09,009 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2022-03-24 16:44:09,010 INFO Included extra file "/etc/supervisor/conf.d/mi-th0.conf" during parsing
2022-03-24 16:44:09,010 INFO Included extra file "/etc/supervisor/conf.d/supla-virtual-device.conf" during parsing
2022-03-24 16:44:09,027 INFO RPC interface 'supervisor' initialized
2022-03-24 16:44:09,027 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2022-03-24 16:44:09,029 INFO supervisord started with pid 1562
2022-03-24 16:44:10,040 INFO spawned: 'mi-th-0' with pid 1564
2022-03-24 16:44:10,051 INFO spawned: 'supla-virtual-device' with pid 1565
2022-03-24 16:44:10,171 INFO exited: mi-th-0 (exit status 2; not expected)
2022-03-24 16:44:11,183 INFO spawned: 'mi-th-0' with pid 1568
2022-03-24 16:44:11,185 INFO success: supla-virtual-device entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-24 16:44:11,310 INFO exited: mi-th-0 (exit status 2; not expected)
2022-03-24 16:44:13,323 INFO spawned: 'mi-th-0' with pid 1569
2022-03-24 16:44:13,445 INFO exited: mi-th-0 (exit status 2; not expected)
2022-03-24 16:44:16,460 INFO spawned: 'mi-th-0' with pid 1570
2022-03-24 16:44:16,581 INFO exited: mi-th-0 (exit status 2; not expected)
2022-03-24 16:44:17,584 INFO gave up: mi-th-0 entered FATAL state, too many start retries too quickly