Description:
Log every kilowatt-hour used to the DB for analytics and billing verification.
Acceptance Criteria:
[ ] Ingest MQTT payloads: { id: 123, kwh: 0.05 }.
[ ] Insert into Time-Series DB (TimescaleDB or InfluxDB).
[ ] Endpoint GET /api/usage/:meter_id.
Priority: Medium
Labels: database, analytics
Description:
Log every kilowatt-hour used to the DB for analytics and billing verification.
Acceptance Criteria:
[ ] Ingest MQTT payloads: { id: 123, kwh: 0.05 }.
[ ] Insert into Time-Series DB (TimescaleDB or InfluxDB).
[ ] Endpoint GET /api/usage/:meter_id.
Priority: Medium
Labels: database, analytics