Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/z1xus/dht22-webui

A simple and lightweight web-interface for monitoring temperature and humidity from your DHT22 sensor.
https://github.com/z1xus/dht22-webui

dark-mode dht22 flask lightweight mongodb raspberry-pi rpi sensor smarthome temperature webui

Last synced: about 1 month ago
JSON representation

A simple and lightweight web-interface for monitoring temperature and humidity from your DHT22 sensor.

Awesome Lists containing this project

README

        

# dht22-webui

A lightweight Flask-based web interface for monitoring DHT22 temperature and humidity sensor data with real-time updates and historical data visualization.




preview




preview



Ruff





### Features
- Real-time temperature and humidity monitoring
- Historical data visualization with interactive charts
- Multiple timeframe views (1h, 24h, 7d, 30d)
- Temperature unit conversion (°C/°F)
- Time format selection (12h/24h)
- MongoDB integration for data storage

### Requirements
- Raspberry Pi
- DHT22 temperature and humidity sensor
- Python 3.12+
- MongoDB database

### Installation
1. Clone the repository
```bash
git clone https://github.com/z1xus/dht22-webui
cd dht22-webui
```
2. Install dependencies
```bash
pip install -r requirements.txt
```
3. Configure your .env file
```bash
MONGO_URI=mongodb+srv://:@.mongodb.net/?retryWrites=true&w=majority

MONGO_DB_NAME=humidity_db
MONGO_COLLECTION_NAME=sensor_readings

DATA_COLLECTION_INTERVAL=60
```
4. Run the server
```bash
python main.py
```

### Usage
1. Connect your DHT22 sensor to your Raspberry Pi (default: GPIO4)
2. Start the application
3. Access the web interface at:
- Local: http://localhost:5000
- Network: http://:5000

### License
This project is licensed under the GPL-3.0 License - see the [LICENSE](LICENSE) file for details.