Server-side application built with Flask that supports an ESP32 microcontroller in monitoring and displaying temperature and humidity data. The data collected by the ESP32 is transmitted to this server, where it is stored in a SQLite database and visualized using Dash. This repository contains the server code, while the ESP32 sketch responsible for data collection can be found in the ESP32-Projects repository.
- Microcontroller measurements monitoring.
- Data storage in SQLite.
- Dashboard for visualizing data over various time periods.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Create a .env file in the project root:
FLASK_DEBUG=1
FLASK_RUN_PORT=8080
FLASK_RUN_HOST=0.0.0.0
TIME_ZONE=Europe/Kyiv
API_KEY=YOUR_API_KEY
flask run -h 0.0.0.0
docker build -t home-monitor .
docker run -d -p 8080:8080 -v $(pwd)/instance:/app/instance --restart unless-stopped --name home-monitor home-monitor
Access the dashboard at http://localhost:8080/dashboard/.