Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/z1xus/dht22-webui
- Owner: Z1xus
- License: gpl-3.0
- Created: 2024-12-05T15:58:50.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T16:03:00.000Z (about 2 months ago)
- Last Synced: 2024-12-05T17:19:06.138Z (about 2 months ago)
- Topics: dark-mode, dht22, flask, lightweight, mongodb, raspberry-pi, rpi, sensor, smarthome, temperature, webui
- Language: HTML
- Homepage:
- Size: 103 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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.
### 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=majorityMONGO_DB_NAME=humidity_db
MONGO_COLLECTION_NAME=sensor_readingsDATA_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.