How tenmeneat/techno works
This is a room-level condensation and mould-risk monitoring product: sensor telemetry is ingested, calibrated and evaluated into risk states and forecasts, then exposed through APIs and a live dashboard. Separate branches provide outdoor-weather enrichment, daily insulation/exposure diagnostics, reports and push notifications. The README documents these capabilities; unsampled routes and UI internals are represented at their exact directories where appropriate. Edges are limited to relationships shown in excerpts, the source index, or README; links from app startup to workers/routes follow the documented wiring.
Main entry points: main.py API application · ingest.py Telemetry pipeline · pool.py Database pool · devices.py Device API
Components 29
Telemetry ingestion
- Telemetry pipeline
backend/app/mqtt/ingest.py - Scenario publisher
backend/tools/simulator.py
Risk analysis
- Psychrometrics
backend/app/domain/psychrometrics.py - Risk state machine
backend/app/domain/risk_state.py - Risk forecast
backend/app/domain/forecast.py
API and persistence
- Database pool
backend/app/db/pool.py - Time-series schema
backend/app/db/schema.sql - API application
backend/app/main.py - Runtime configuration
backend/app/core/config.py - Device API
backend/app/api/v1/devices.py - Readings API
backend/app/api/v1/readings.py - Events API
backend/app/api/v1/events.py - Reports API
backend/app/api/v1/reports.py - Push API
backend/app/api/v1/push.py - Live WebSocket
backend/app/api/v1/ws.py - API contracts
backend/app/api/v1/schemas.py
Diagnostics and alerts
- Weather sync
backend/app/workers/weather_sync.py - Daily diagnostics
backend/app/workers/diagnostics.py - Push notifier
backend/app/workers/notifier.py
Dashboard experience
- Frontend API client
frontend/src/lib/api.ts - Live cache client
frontend/src/lib/live.ts - Dashboard screens
frontend/src/app - Risk chart
frontend/src/components/RiskChart.tsx - PWA notifications
frontend/src/lib/notifications.ts
Other components
- ESP32 sensors
- MQTT broker
- KMA / Open-Meteo
- Web Push service
- Resident
Connections 43
- ESP32 sensors → MQTT broker: publishes telemetry
README.md - MQTT broker → Telemetry pipeline: delivers messages
README.md - Scenario publisher → MQTT broker: publishes scenarios
README.md - Telemetry pipeline → Psychrometrics: calculates readings
backend/app/mqtt/ingest.py - Telemetry pipeline → Risk state machine: updates state
backend/app/mqtt/ingest.py - Telemetry pipeline → Risk forecast: estimates risk
backend/app/mqtt/ingest.py - Telemetry pipeline → Database pool: stores readings
backend/app/mqtt/ingest.py - Telemetry pipeline → Live WebSocket: broadcasts updates
backend/app/mqtt/ingest.py - Telemetry pipeline → Push notifier: notifies risk
backend/app/mqtt/ingest.py - Database pool → Time-series schema: uses schema
- API application → Database pool: opens connection
backend/app/main.py - API application → Telemetry pipeline: starts workers
backend/app/main.py - API application → Weather sync: starts worker
backend/app/main.py - API application → Daily diagnostics: starts worker
backend/app/main.py - API application → Device API: registers routes
backend/app/main.py - API application → Readings API: registers routes
backend/app/main.py - API application → Events API: registers routes
backend/app/main.py - API application → Reports API: registers routes
backend/app/main.py - API application → Push API: registers routes
backend/app/main.py - API application → Live WebSocket: registers route
backend/app/main.py - API application → Runtime configuration: configures service
backend/app/main.py - Device API → Database pool: queries devices
backend/app/api/v1/devices.py - Device API → Telemetry pipeline: reads runtime state
backend/app/api/v1/devices.py - Device API → Psychrometrics: computes threshold
backend/app/api/v1/devices.py - Readings API → Database pool: queries readings
backend/app/api/v1/readings.py - Readings API → Psychrometrics: computes metrics
backend/app/api/v1/readings.py - Events API → Database pool: queries events
backend/app/api/v1/events.py - Reports API → Database pool: queries report data
backend/app/api/v1/reports.py - Reports API → Device API: loads device
backend/app/api/v1/reports.py - Weather sync → KMA / Open-Meteo: fetches observations
backend/app/workers/weather_sync.py - Weather sync → Database pool: stores weather
backend/app/workers/weather_sync.py - Daily diagnostics → Database pool: reads and stores
backend/app/workers/diagnostics.py - Daily diagnostics → Psychrometrics: calculates insulation
backend/app/workers/diagnostics.py - Push notifier → Web Push service: sends notifications
README.md - Push API → Database pool: stores subscriptions
backend/app/api/v1/push.py - Frontend API client → API application: requests API
README.md - Live cache client → Frontend API client: uses API contract
frontend/src/lib/live.ts - Live cache client → Live WebSocket: opens live stream
README.md - Dashboard screens → Frontend API client: loads product data
README.md - Dashboard screens → Risk chart: renders risk chart
README.md - Dashboard screens → Live cache client: refreshes live data
README.md - PWA notifications → Push API: subscribes device
README.md - Resident → Dashboard screens: views dashboard
README.md