Still: a diary that writes itself, as fast as my Raspberry Pi can think
Описание и применение
Система "Still" автоматически ведёт дневник на Raspberry Pi, используя локальную модель Gemma‑4‑E2B. Записи создаются только при значимых событиях, а пустые тики фиксируются как молчание. Процесс не требует облака и соблюдает ограничения железа.
Задача
Automate a personal diary that writes itself only when something noteworthy happens, without external APIs or cloud services, and respects the hardware limits of a Raspberry Pi.
Результат
The diary now writes only when something noteworthy occurs, producing concise first‑person entries. Silent ticks are recorded, and the system respects the Pi’s hardware limits, avoiding over‑generation.
Рабочий процесс
- 1. Run Gemma‑4‑E2B locally via llama‑server on the Pi.
- 2. A worker schedules a tick every real hour, starting after the previous tick finishes.
- 3. The worker queries the Pi’s load average from a separate process to adjust legal moves.
- 4. The worker gathers open items and the current moment, sends them to Gemma for a numbered action.
- 5. Python validates the action against a JSON schema; if invalid, the tick is marked silent.
- 6. Valid actions are executed (e.g., moving parcels, updating files).
- 7. The tick is stored in SQLite; triggers prevent edits or deletes.
- 8. Entries are filtered by a rejection list (sentence count, voice, etc.) before publishing.
Доказательства
No API, no cloud, no internet required.
A worker that finishes a tick, then rests one real hour.
Gemma never invents anything. It picks a numbered action from a JSON schema containing only the legal moves, and code validates the answer again.
SQLite as the source of truth. Every tick is stored, including the ones where nothing happened.
- Дата записи: 2026-10-25T04:11:34.957Z