Electricity Availability and Outage Tracker
Python · FastAPI · PostgreSQL · React · ESP32 (C++)
- Built an ESP32 and FastAPI power monitor that detects outages after 75s of missed heartbeats and sends Telegram alerts.
- Logged 250+ outages since April 2026 and measured 87–93% monthly grid uptime from an append-only PostgreSQL event log.
- Eliminated false outage records using an asyncio lock, a generation counter for stale timers and a restart grace window.
- Built an outage-duration forecast that abstains with fewer than 8 comparable outages, validated by backtesting.