Skip to content

iamstevedavis/iot-pi-temp-humidity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi Temp and Humidity Sensor

IoT DHT22 Live Monitoring for Raspberry Pi.

Serves an HTML page this is updated via sockets every 15 seconds to show the current tempurature and humidity at the devices location.

Had a few challenges developing this. At first I had the app reading from the DHT22 every 5 seconds for every connected person. This would cause the device itself to heat up and prevent the accurate measurement of the tempurature. I solved this issue by setting the read from the device to happen once time every 30 seconds and I emit that stored value to all users at once, via sockets, every 15 seconds. This prevents any heating issues and gives accurate measurements.

  1. Install Adafruit_DHT
  1. pip install -r requirements.txt
  2. python main.py

About

IoT - Raspberry Pi Monitors Temperature and Humidity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published