On my own time · 2026
Home backup power tracker
A local dashboard that records how a home backup power station behaves through every power cut.
The problem
Power cuts are part of life in Dhaka. The maker's app shows the battery right now but keeps no useful history: how many outages, how long each lasted, how much energy the battery supplied, how hot it ran.
What I built
- A read-only listener on the device's data stream that logs battery, power, temperatures and fan level.
- Outage detection, with duration, battery drop and energy supplied for each power cut.
- A dashboard with live cards, zoomable history charts, daily energy bars and an hour-by-day heatmap.
- CSV export and a Prometheus metrics endpoint.
- Password-protected remote access through a Cloudflare Tunnel.
How it works
- Listen to the device stream
- Store readings locally
- Detect outages
- Show it on the dashboard
Results
- A full record of every outage, viewable from a phone.
- Runs as a background service and restarts itself after a crash.
Built with
Python, MQTT, HTML and JavaScript, systemd, Cloudflare Tunnel.