Menu Close

Customized Temperature Humidity Sensor

 

 

Parts Required:

–  Raspberry Pi
–  DHT11 Sensor
–  Breadboard
–  Wires to connect it all together

 

 

Customized Temperature and Humidity Sensor.

Customized Temperature Humidity Sensor
DIAGRAM
  • install webiopi (Rasbian) how to install webiopi service.
  • Upload the script folder to this path “/home/pi/”
  • sudo gedit (or nano) /etc/webiopi/config Find and Replace the Lines :

 

 

[SCRIPTS]
# Load custom scripts syntax :
# name = sourcefile
# each sourcefile may have setup, loop and destroy functions and macros
#myscript = /home/pi/webiopi/examples/scripts/macros/script.py


#------------------------------------------------------------------------#

[HTTP]
# HTTP Server configuration
enabled = true
#port = 8000
port = 8080

# File containing sha256(base64("user:password"))
# Use webiopi-passwd command to generate it
passwd-file = /etc/webiopi/passwd

# Change login prompt message
prompt = "WebIOPi"

# Use doc-root to change default HTML and resource files location
#doc-root = /home/pi/webiopi/examples/scripts/macros 

doc-root = /home/pi/script/
  • For instance, to start with verbose output and the default config file :
sudo webiopi -d -c /etc/webiopi/
  • You can also start/stop the background service, the configuration will be loaded from /etc/webiopi/config.
sudo /etc/init.d/webiopi start
sudo /etc/init.d/webiopi stop
  • To set up your system to start webiopi at boot :
sudo update-rc.d webiopi defaults

open your browser to http://your Raspberrypi IP address:8080/ with any device of your network.

Download: DHT11_Project

 



 

For more Please make sure to subscribe to Officialhrm YouTube channel and like Facebook Page.

Thank you for visiting OfficialhrmPlease don’t forget to share this website with your friends.

Posted in Raspberry Pi Projects Beginners

3 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *