-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run on startup #29
Comments
Maybe startup script runs mqtt.py under the root user while paho-mqtt library is installed for regular user? |
Installed it with sudo, and I am still having the same issue. If I run with python3 i get |
Well, it looks like i needed to install broadlink with sudo and it fixed the problem. Thank you for the help! |
hello, I'm windows user and I run on startup mqtt.py and it's ok. |
Sorry, I have no experience with Windows services. |
I tried it and it's works fine!!
You have mqtt.py like a service, and you can see it in your Services. |
For documentation
|
I am trying to have the mqtt.py run on startup. I added
python /home/openhabian/broadlink-mqtt/mqtt.py &
to rc.local, but it did not seem to trigger the script.
I also get errors when trying to execute mqtt.py from node red.
Traceback (most recent call last): File "mqtt.py", line 3, in <module> import paho.mqtt.client as paho # pip install paho-mqttImportError: No module named paho.mqtt.client
I assume that has to do with the way paho was installed and it can't find the module... but I haven't figured that out either. I am assuming they might be related.
Is it something simple I am missing?
The text was updated successfully, but these errors were encountered: