Light don go: when Nigeria's power cuts out, my laptop sends me outside
Description and use
Light don go automatically nudges users during Nigerian power cuts, offering a 60‑second action plan to reduce downtime.
Problem
Power cuts in Nigeria cause laptops to switch to battery, interrupting work and requiring manual intervention to start a generator.
Outcome
The tool runs offline, uses no internet, and reduces idle time during power cuts by prompting users to act within 60 seconds.
Workflow
- Detect battery state via psutil every 5s
- If battery >30s, open full‑screen page
- Show 60‑second stretch timer and activity plan
- Provide button to dismiss
- After timer, show completion message
- Log event and update local weather data
- Keep Gemma model loaded with keep_alive:-1
Evidence
When NEPA goes, the router goes with it. So while power is on, the tool saves the hourly Open‑Meteo forecast every 30 minutes.
The page works with no internet, because the router is already off: it uses no web fonts and loads nothing from a CDN.
I split the job: code writes the facts line, Gemma writes only the nudge.
- Record date: 2026-10-21T08:41:20.128Z