eschava / broadlink-mqtt

MQTT client to control BroadLink devices
MIT License
224 stars 61 forks source link

Startup script error... #110

Open PAOK1926 opened 2 years ago

PAOK1926 commented 2 years ago

i followed the exact commands, but i get this error

systemctl status broadlink-mqtt.service

Nov 16 16:14:14 AD110-NOC systemd[1]: Started Broadlink MQTT Service. Nov 16 16:14:14 AD110-NOC systemd[159885]: broadlink-mqtt.service: Failed to set up standard input: Operation not permitted Nov 16 16:14:14 AD110-NOC systemd[159885]: broadlink-mqtt.service: Failed at step STDIN spawning /usr/bin/python3: Operation not permitted Nov 16 16:14:14 AD110-NOC systemd[1]: broadlink-mqtt.service: Main process exited, code=exited, status=208/STDIN Nov 16 16:14:14 AD110-NOC systemd[1]: broadlink-mqtt.service: Failed with result 'exit-code'. Nov 16 16:14:14 AD110-NOC systemd[1]: broadlink-mqtt.service: Consumed 1ms CPU time.

eschava commented 2 years ago

do you have python3 installed?

PAOK1926 commented 2 years ago

yes, this command runs normally

/usr/bin/python3 /root/broadlink-mqtt/mqtt.py

PAOK1926 commented 2 years ago

i finally did it the old fashioned way, in crontab...

@reboot /usr/bin/python3 /root/broadlink-mqtt/mqtt.py