Comments (11)
Sorry, I'm not an expert in the Linux
But you can try adding your line to /etc/rc.local, not /etc/profile
from broadlink-mqtt.
ok i got it. this let it wait 1min b4 it start after my node red which runs my mqtt server.. thank u guys very much.
sudo nano /etc/rc.local
then add this to the bottom after
fi
sleep 60 && python home/pi/broadlink-mqtt/mqtt.py
from broadlink-mqtt.
What error are you getting?
from broadlink-mqtt.
this is what i did
-sudo nano /etc/profile
then added to the bottom.
-python broadlink-mqtt/mqtt.py
save it then
-sudo reboot
when i log back in with putty this is what i get..
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Oct 26 06:46:52 2018 from 192.168.50.1
[2018-10-26 06:52:06,053] DEBUG Connected to RM2 Broadlink device at '192.168.50.179' (MAC e8:d4:50:77:0f:78)
Traceback (most recent call last):
File "broadlink-mqtt/mqtt.py", line 389, in
mqttc.connect(cf.get('mqtt_broker', 'localhost'), int(cf.get('mqtt_port', '1883')), 60)
File "/home/pi/.local/lib/python2.7/site-packages/paho/mqtt/client.py", line 839, in connect
return self.reconnect()
File "/home/pi/.local/lib/python2.7/site-packages/paho/mqtt/client.py", line 962, in reconnect
sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
File "/usr/lib/python2.7/socket.py", line 575, in create_connection
raise err
socket.error: [Errno 111] Connection refused
from broadlink-mqtt.
Looks like your mqtt server is run AFTER broadlink-mqtt
Could you please confirm?
from broadlink-mqtt.
i dont kno how to do that.... but is there a way to add a delay to the start up..?
from broadlink-mqtt.
i try that also same erro and i also try bashrc
from broadlink-mqtt.
I think /etc/profile is a bad option because it's run only when you log in using ssh, am I correct?
Look, do you have success running broadlink-mqtt in manual mode?
from broadlink-mqtt.
yes. ill try to local again.. and yes i can run command manual works fine.
from broadlink-mqtt.
I added mine to /etc/rc.local The command I used is as follows. Your path will vary.
nohup python /home/plains203/broadlink-mqtt/mqtt.py --mqtt >/dev/null 2>&1 &
sleep 1
from broadlink-mqtt.
nope not working...
from broadlink-mqtt.
Related Issues (20)
- Cannot connect to Dooya DT360E HOT 2
- Cannot connect to MQTT server on RM4PRO HOT 2
- RM4PRO Setup / temperature
- Broadlink-mqtt Service script question
- Support for S3 Hub
- Broadlink-MQTT "invalid subscription filter" error message
- Problem with multiple devices HOT 5
- Issue HOT 10
- Startup script error... HOT 3
- broadlink rm4pro and curtain command
- broadlink sp4l
- Bind to ip of interface? HOT 4
- No topic to know which devices have been found HOT 3
- RM4C mini Bestcon Unknown HOT 2
- Docker Container and Multiple BG1 HOT 4
- RMMIN type_device nslookup HOT 4
- Add support for sp3s plug HOT 4
- Devices playing up, connected one to app I think - how to remove
- RM4 Mini support
- Issue with messages following upgrade HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broadlink-mqtt.