erdose / xiaomi-mi-lywsd03mmc

Xiaomi Mi BLE Temperature & Humidity Sensor
MIT License
26 stars 7 forks source link

Permission denied #12

Closed MennoLabs closed 1 year ago

MennoLabs commented 3 years ago

2021-10-09 13:34:51 INFO *** 2021-10-09 13:34:51 INFO Start script... 2021-10-09 13:34:51 INFO Input parameters: Domoticz Server IP: 192.168.178.23 Domoticz Server Port: 8080 Domoticz Server User: Domoticz Server Password: 2021-10-09 13:34:51 ERROR Failed to execute management command 'le on' (code: 20, error: Permission Denied)

Havym commented 2 years ago

I'm having the same problem. With hcitool the device is responding

Jaj0 commented 2 years ago

You need to run this script as root

MennoLabs commented 1 year ago

Thanks, got it finally working. Had to change port from 8000 to 8080, I think the latter is standard for Domoticz. Sudo is only necessary when testing from the command line, when run from crontab this is no issue.