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, leading to lost work time while waiting for a generator to start.
结果
The tool runs offline, uses a local Gemma model, and reduces lost work time during power cuts by prompting users to take short breaks or go outside.
工作流
- Detect battery state via psutil every 5s
- If battery >30s, show full‑screen page with plan and timer
- Provide activity nudge from Gemma 4 E2B via Ollama
- Guard checks nudge for numbers or forbidden words
- If guard fails, use fallback sentence
- Close page after next power cut
- Log events and save weather forecast offline
证据
When my laptop switches to battery for more than 30 seconds, a full‑screen page opens on top of whatever I'm doing
The model is a 4.3 GB download. My laptop is an i5-1135G7 with no NVIDIA GPU.
I set keep_alive: -1, which keeps Gemma in RAM (3.9 GB of my 15.7).
- 记录日期: 2026-10-27T17:26:48.698Z