How shat0nge/stark-monitor works
This repository implements a STARK inverter monitor: it polls inverter telemetry, parses QPIGS responses, publishes live status and history graphs, and retains measurements in SQLite. The configurable v2 runtime adds optional SSH-based database synchronization. The graph includes both the legacy root implementation and v2; source excerpts show the polling and persistence flow, but omit portions of web routing and database API handling, so those connections are marked unverified where necessary. No README text was supplied.
Main entry points: v2/monitor.py Poll coordinator · monitor.py Poll coordinator · config.py Runtime configuration · database.py Measurement database
Components 16
Legacy monitor
- Poll coordinator
monitor.py - Serial protocol
inverter.py - QPIGS parser
parser.py - Measurement database
database.py
Configurable monitor
- Runtime configuration
v2/config.py - Poll coordinator
v2/monitor.py - Serial protocol
v2/inverter.py - QPIGS parser
v2/parser.py
Web dashboard
- Dashboard and API
web.py - Dashboard and API
v2/web.py
Measurement storage
- Measurement database
v2/database.py
Database sync
- Sync worker
v2/db_sync.py
Other components
- Monitor user
- STARK inverter
- Web browser
- Remote SQLite host
Connections 25
- Monitor user → Web browser: views dashboard
- Web browser → Dashboard and API: requests pages
web.py - Web browser → Dashboard and API: requests pages
v2/web.py - Poll coordinator → Serial protocol: queries inverter
monitor.py - Poll coordinator → QPIGS parser: parses response
monitor.py - STARK inverter → Serial protocol: returns telemetry
- Poll coordinator → Measurement database: saves measurements
monitor.py - Poll coordinator → Measurement database: cleans old data
monitor.py - Poll coordinator → Dashboard and API: publishes state
monitor.py - Dashboard and API → Measurement database: reads history
web.py - Runtime configuration → Poll coordinator: configures polling
v2/monitor.py - Runtime configuration → Serial protocol: configures serial
v2/inverter.py - Runtime configuration → Measurement database: configures storage
v2/database.py - Runtime configuration → Dashboard and API: configures server
v2/web.py - Runtime configuration → Sync worker: configures sync
v2/db_sync.py - Poll coordinator → Serial protocol: queries inverter
v2/monitor.py - Poll coordinator → QPIGS parser: parses response
v2/monitor.py - STARK inverter → Serial protocol: returns telemetry
- Poll coordinator → Measurement database: saves measurements
v2/monitor.py - Poll coordinator → Measurement database: cleans old data
v2/monitor.py - Poll coordinator → Dashboard and API: publishes state
v2/monitor.py - Dashboard and API → Measurement database: reads history
- Sync worker → Measurement database: reads new rows
v2/db_sync.py - Sync worker → Remote SQLite host: sends rows by SSH
v2/db_sync.py - Remote SQLite host → Sync worker: returns latest ID
v2/db_sync.py