Mrcuve0 / Raspberry-Thermostat

A Smart-Home IoT Thermostat
GNU General Public License v3.0
4 stars 1 forks source link

connection refused error [Error111] #2

Open unupingu opened 4 years ago

unupingu commented 4 years ago

hy i want to build the thermostat ,can you help me with this error or i am doing soemthing wrong! thanks

polldo commented 4 years ago

Have you installed all the necessary tools on the raspberry pi?

/* Modify hostname of raspberry into 'thermostat' */  
sudo /etc/init.d/hostname.sh
sudo reboot
/* Install avahi */
sudo apt-get install avahi-daemon
/* Install mosquitto */
sudo apt-get install mosquitto mosquitto-clients
/* Install paho */
pip install paho-mqtt
/* Install mongodb */
sudo apt-get install mongodb
/* Install mongodb libraries */
pip install pymongo==2.7
/* Install dht dependencies and libraries */
sudo apt-get update
sudo apt-get install build-essential python-dev python-openssl git
sudo pip install Adafruit_DHT
unupingu commented 4 years ago

yes i did

unupingu commented 4 years ago

this happens when i run "sudo python logic.py command"

polldo commented 4 years ago

Be sure to have 'mongod' process configured and running. To startup the application you just have to launch 'python init_script.py'.

unupingu commented 4 years ago

now when i run init_script.py i get no module named AWSIoTPythonSDK.MQTTLib

polldo commented 4 years ago

Remove this line 'subprocess.Popen(["python", "/home/pi/Documents/Raspberry-Thermostat/Raspberry/remote_service.py"])' from 'init_script.py'