How tcullum/govee-dashboard works
Govee Dashboard is a local-first Flask service with a static browser interface. A user opens the dashboard to view indoor sensor readings alongside local forecasts, alerts, pollen, and historical almanac comparisons; optional AI features provide insights and answer weather questions. The server gathers and caches data, while browser code presents overview and detail views. Security checks protect origin requests and can require Cloudflare Access assertions. The README documents additional capabilities beyond the sampled excerpts; those are represented without guessing at unsampled implementation details.
Main entry points: govee_server.py Flask API · weather_questions.py Almanac questions · weather_context.py Historical almanac · app.js Dashboard UI
Components 17
Dashboard interface
- Dashboard UI
app.js - Offline shell
service-worker.js
Application services
- Flask API
govee_server.py - Sensor readings
govee_server.py
Weather and almanac
- Local forecast
govee_server.py - Historical almanac
weather_context.py - Almanac questions
weather_questions.py - AI insights
govee_server.py
Access and persistence
- Cloudflare assertion
cloudflare_access.py - Origin checks
request_security.py - Runtime persistence
runtime_storage.py
Other components
- Dashboard user
- Open-Meteo
- Govee API
- National Weather Service
- Google Pollen API
- AI provider
Connections 21
- Dashboard user → Dashboard UI: uses
README.md - Dashboard UI → Flask API: requests data
app.js - Offline shell → Dashboard UI: caches shell
service-worker.js - Flask API → Sensor readings: serves readings
govee_server.py - Sensor readings → Govee API: fetches readings
govee_server.py - Flask API → Local forecast: serves forecast
govee_server.py - Local forecast → Open-Meteo: fetches forecast
govee_server.py - Flask API → Historical almanac: gets almanac
govee_server.py - Historical almanac → Open-Meteo: fetches history
weather_context.py - Historical almanac → Runtime persistence: reads and writes
weather_context.py - Flask API → Almanac questions: registers questions
govee_server.py - Almanac questions → Open-Meteo: fetches weather
weather_questions.py - Almanac questions → AI provider: generates answers
weather_questions.py - Almanac questions → Runtime persistence: uses cache
weather_questions.py - Flask API → AI insights: generates insights
govee_server.py - Flask API → Cloudflare assertion: registers protection
govee_server.py - Flask API → Origin checks: uses checks
govee_server.py - Flask API → Runtime persistence: uses persistence
govee_server.py - Flask API → National Weather Service: provides alerts
README.md - Flask API → Google Pollen API: provides pollen
README.md - AI insights → AI provider: generates insights