Light don go: when Nigeria's power cuts out, my laptop sends me outside
说明与用途
“Light don go”工具帮助在频繁停电地区的笔记本电脑用户保持生产力和安全,通过显示离线全屏页面提供伸展计划和户外活动提示。
问题
Laptop users in regions with frequent power cuts need a way to stay productive and safe during outages without relying on internet or external APIs.
结果
The tool runs offline, uses local resources, and keeps users productive during outages, with a 60‑second stretch plan and safe outdoor activity nudge.
工作流
- Detect battery drop >30s via psutil
- Load pre‑saved weather data from Open‑Meteo
- Compute sunset via NOAA formula
- Generate nudge text with Gemma 4 E2B (local Ollama)
- Show full‑screen page with timer and nudge
- Close page after user acknowledges or timer ends
证据
The page works with no internet, because the router is already off: it uses no web fonts and loads nothing from a CDN.
The model is a 4.3 GB download. My laptop is an i5-1135G7 with no NVIDIA GPU. Measured: 14 s cold, 3.6 to 4.0 s warm, about 15 to 20 tokens per second.
The guard checks numbers and topic, not sense. In one test run Gemma wrote "watch the rain inside the phone", and it passed.
- 记录日期: 2026-10-15T11:56:06.022Z