Skip to content

3akare/grid-sensing

v0.1.0MIT

Detect power cuts from phones' charging state. The Android charging-sensor pattern (JobScheduler stop as the signal), the Poisson detection engine with its tested numbers, and per-maker battery steps (Tecno, Infinix, itel, Samsung, Xiaomi, Pixel) that stop the OS killing a background sensor. Patterns from the Outage project.

blackout-detection

Decide from many phones' charging events whether grid power is out, with a Poisson test on simultaneous drops, and when it came back. Use when designing or testing a blackout or power-cut detector from crowd sensors, choosing a baseline rate and thresholds, computing the minimum number of simultaneous unplugs for an alert, defining restore evidence that ignores generators and inverters, or writing property-based tests (fast-check) for such an engine.

License
MIT
Read SKILL.md at the source

Pinned to revision 18ab87dd7664, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.