Learn when your power tends to go, so you can be charged before it does.
Frequent cuts feel random
The power goes, comes back, and goes again. You do not know when to plan work, or when to keep your devices charged. A record of your own cuts shows you the pattern.
At my home in Lucknow
- power cuts in about 166 days
- 399
- uptime
- 97.09%
- of days had a cut
- 76%
- typical cut
- ~8 min
- longest cut
- ~4 hours
- busiest window, nearly a third of cuts
- 14:00-18:00
- worst weekday
- Friday
One example of what a report can look like, made from my own data. Opens in a new tab.
How it works
- 1
A computer writes a heartbeat to a local SQLite database every 60 seconds.
- 2
When power goes, the heartbeat stops.
- 3
When power is back, a gap over 3 minutes is recorded as a cut.
- 4
An optional Discord alert can fire on recovery.
- 5
Your data stays on your machine. You make your own reports from it.
What a report tells you
Worst hours
The times of day when cuts hit most.
Worst weekdays
Which days of the week are rougher.
Typical vs worst case
How long a usual cut lasts, and how long the bad ones run.
Days with cuts
How many days have at least one cut.
The trend
Whether things are getting better or worse.
When to charge
When to keep the laptop, phone, power bank, and inverter charged.
Who it is for
Good fit
Homes and small offices where power cuts are frequent.
Not a fit
Places where power rarely goes out, because there is little pattern to find. It is also not for servers or data centers.
Make your own reports
The repo collects the data. Anyone can build a report from the SQLite file however they like.
To use an AI agent, paste the prompt from the README into your own agent (for example Grok Bot or Hermes) and schedule it weekly. Keep in mind that whatever the agent reads may be sent to its provider.
Run it yourself
Power Monitor is open source. It works on macOS and on a Raspberry Pi / Linux.
View the code on GitHub