How dev-mk0/project works
This is a Raspberry Pi dew-point ventilation monitor with a browser dashboard. Its main workflow is to measure temperature and humidity, calculate dew-point values, control a fan relay, and present live readings; measurements can also be saved to SQLite and exported as CSV. The FastAPI application serves the dashboard and its API, while the JavaScript client requests status and settings and receives live WebSocket updates. The README documents both real and demo modes, plus scheduled operation. Some measurement and control implementation is omitted from the excerpts, so those hardware links are shown as unverified.
Main entry points: main.py Real service · script.js Dashboard client · main-demo.py Demo service · index.html Dashboard template
Components 13
Application runtime
- Real service
main.py - Demo service
main-demo.py - Schedule rules
main.py - System status
main.py
Sensing and control
- DHT sensors
main.py - Dew point control
main.py - Fan relay
main.py
Measurement data
- Measurements DB
main.py - CSV export
main.py
Web dashboard
- Dashboard template
templates/index.html - Dashboard client
static/js/script.js - Dashboard styles
static/css/styles.css
Other components
- Operator
Connections 14
- Real service → Dashboard template: renders
main.py - Real service → Measurements DB: reads and writes
main.py - Real service → CSV export: exports
main.py - Real service → Schedule rules: checks schedule
main.py - Real service → System status: provides status
main.py - Dashboard client → Real service: requests API
static/js/script.js - Dashboard client → Real service: opens WebSocket
static/js/script.js - Real service → Dashboard client: sends live data
main.py - Dashboard client → Dashboard styles: uses styles
- Operator → Dashboard client: uses dashboard
README.md - Real service → DHT sensors: reads sensors
main.py - DHT sensors → Dew point control: provides readings
main.py - Dew point control → Fan relay: controls fan
main.py - Operator → Demo service: starts demo mode
README.md