Light don go: when Nigeria's power cuts out, my laptop sends me outside
Описание и применение
Инструмент Light don go автоматически уведомляет пользователей о отключении электроэнергии в Нигерии, предлагая действия в течение 60 секунд, чтобы минимизировать простои.
Задача
Power cuts in Nigeria cause laptops to switch to battery, interrupting work and requiring manual intervention to start a generator.
Результат
The tool runs offline, uses no internet, and reduces idle time during power cuts by prompting users to act within 60 seconds.
Рабочий процесс
- 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
Доказательства
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.
- Дата записи: 2026-10-21T08:41:20.128Z