Skip to content

A DHT Weather Station project using Python, Flask, Flask-SocketIO, and Bootstrap

License

Notifications You must be signed in to change notification settings

donskytech/dht22-weather-station-python-flask-socketio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi DHT22 Weather Station Python Flask Socketio

A DHT Weather Station project using Python, Flask, Flask-SocketIO, and Bootstrap that displays real-time temperature and humidity sensor readings using your Raspberry Pi Featured Image - DHT22 Weather Station With Python, Flask, Flask-SocketIO

Writeup

https://www.donskytech.com/raspberry-pi-dht22-weather-station-project/

Prerequisites

Make sure to install the DHT22 driver on your Raspberry Pi using the Adafruit_circuitPython_dht library.
Follow the following post https://www.donskytech.com/raspberry-pi-how-to-interface-with-a-dht22-sensor/

Steps on how to run on Raspberry Pi

  1. Clone the repository
git clone https://github.com/donskytech/dht22-weather-station-python-flask-socketio.git
cd dht22-weather-station-python-flask-socketio
  1. Create a Python virtual environment
python -m venv .venv
source .venv/bin/activate
  1. Install the dependencies
pip install -r requirements.txt
  1. Run the application
flask run --host=0.0.0.0
  1. Access the application using the following URL
http://<IP>:5000

Multiple DHT22 IoT Weather Station Dashboard

This is a follow up project to this project. It will display dynamic number of DHT22 sensors and its readings. https://www.donskytech.com/raspberry-pi-weather-station/

Code:
https://github.com/donskytech/dht22-weather-station-python-flask-socketio-multiple-sensors Sample Web View

How to auto-start this project when your Raspberry Pi boots or starts?

https://www.donskytech.com/raspberry-pi-how-to-start-python-script-on-boot/

About

A DHT Weather Station project using Python, Flask, Flask-SocketIO, and Bootstrap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published