The project is constantly being updated until the first realise is created. thank you.
Created out of the need to monitor atmospheric conditions within a astronomical observatory. The project dht22-sensor is small service to show atmospheric conditions by sensor dht22
- By http protocol we can see the values in CSV format or in generated graphic.
- Temperature
- R.Humidity
- Dew Point
- Heat index
- Weather history
- Raspberry Pi with Raspbian OS
- Mini Breadboard wire
- DHT22 Humidity Sensor
- One 10k ohm resistor (Brown, Black, Orange, Gold)
Pin 1 is VCC (Power Supply)
Pin 2 is DATA (Data signal)
Pin 3 is NULL (Do not connect)
Pin 4 is GND (Ground)
Place a 10k resistor between Pin 1 and Pin 2 of the DHT22
Wire Pin 1 of the DHT22 to Physical Pin 1 (3v3) on the Pi
(for the use of 3v the wire must be equal or less than one meter)
Wire Pin 2 of the DHT22 to Physical Pin 7 (GPIO4) on the Pi
Wire Pin 4 of the DHT22 to Physical Pin 6 (GND) on the Pi
- Install git.
apt-get install git
- Clone the dht22-sensor git repository.
git clone https://github.com/ruirigel/dht22-sensor.git
- Navigate to the dht22-sensor sub-directory.
cd dht22-sensor/
- Run setup.sh to install the relevant software.
- Note: You may be prompted for a password for sudo.
chmod +x setup.sh
./setup.sh
- Start dht22-sensor server.
sudo reboot now
- After reboot open the addresses in your browser.
http://localhost:8000/dht22values
http://localhost:8000/plot.png
Congratulations if you seeing this similar result: https://github.com/ruirigel/dht22-sensor/blob/main/plot.png