No description
  • Python 97.9%
  • Shell 2.1%
Find a file
2026-11-26 18:02:31 +00:00
deploy Add statuspi: OLED status display for a Pi Zero 2 W 2026-11-25 23:22:08 +00:00
docs Daytime contrast 10 (night stays at 1) 2026-11-26 18:02:31 +00:00
statuspi Daytime contrast 10 (night stays at 1) 2026-11-26 18:02:31 +00:00
tests UCAS: full-screen popup for application-update emails, manual tile overrides 2026-11-26 16:54:03 +00:00
.gitignore Add statuspi: OLED status display for a Pi Zero 2 W 2026-11-25 23:22:08 +00:00
config.example.toml Daytime contrast 10 (night stays at 1) 2026-11-26 18:02:31 +00:00
README.md Daytime contrast 10 (night stays at 1) 2026-11-26 18:02:31 +00:00
requirements.txt Add statuspi: OLED status display for a Pi Zero 2 W 2026-11-25 23:22:08 +00:00

statuspi

A tiny window on the things you keep refreshing.

A Raspberry Pi Zero 2 W with a 1.3" OLED that sits on the desk and quietly keeps watch: the time under a drifting starfield, how much Claude and Codex you have left, and whether a university has finally written back.

The four pages: clock, Claude, Codex and UCAS

Topic What you see
Clock Thursday, 17th of September, the time, and stars sliding past (with the odd shooting star)
Quota Claude then Codex, 5 s each: plan, 5h and 7d usage bars, time until reset. The crab is up to something new every visit (studying, writing, napping, coding, coffee, vibing, thinking, dancing); the Codex cloud does weather (big ideas, drizzle, snow, sunglasses, rainbow...). Either one sulks when you are tapped out
UCAS A tile per university: envelope or ! (to do) while an email is unread; ? interview, tick for an offer and cross stay, plus the newest unread email in one line from Claude Haiku. Offers bring confetti. UCAS's generic "there's been an update to your application" email pops up full-screen for 3 s of every 8 until you read it. A tile can be set by hand with [ucas.manual] in config.toml

The loop: clock 60 s, then Claude, Codex and UCAS for 5 s each, sliding between pages. An unread university email pins the UCAS page (its tile flashes) until you read it in Gmail.

Hardware

  • Raspberry Pi Zero 2 W (Raspberry Pi OS Lite, Trixie)
  • 1.3" I2C OLED, SH1106 128x64 (marked XFP1116-07A)
  • Optional: EC11 rotary encoder and a push button
Part Pi header pin
OLED VCC / GND / SDA / SCL 1 (3V3) / 6 / 3 (GPIO2) / 5 (GPIO3)
Encoder A / B / push / GND 11 (GPIO17) / 13 (GPIO27) / 15 (GPIO22) / 14
Power button 16 (GPIO23) and GND

Power encoder boards from 3.3 V, never 5 V.

Install

git clone <this repo> ~/statuspi && cd ~/statuspi
sudo ./deploy/install.sh      # packages, I2C at 400 kHz, venv, service; reboot if it asks
statuspi login claude         # open the link, then: statuspi login claude '<code#state>'
statuspi login codex          # enter the code it prints at auth.openai.com/codex/device

For the UCAS page, put a Gmail app password in ~/.config/statuspi/.env (mode 0600):

GMAIL_ADDRESS=you@gmail.com
GMAIL_APP_PASSWORD=abcd efgh ijkl mnop

The service starts on boot. Logs: journalctl -u statuspi -f.

Controls

Input Does
Turn the encoder previous / next topic
Push the encoder quota: refresh now; UCAS: dismiss on the Pi (or check now)
Power, tap screen sleep / wake
Power, hold 3 s "Goodnight!" and a clean shutdown

How it works

  • Quota: the Pi has its own Claude and Codex logins (stored in ~/.config/statuspi/, 0600) and polls their usage endpoints every 5 minutes. Don't copy a laptop's tokens: refresh tokens rotate, and two machines sharing one will keep signing each other out. These endpoints are unofficial, so they may change without warning.
  • UCAS: Gmail over IMAP every minute, read-only (it checks the unread flag but never changes it). Emails from UCAS, Imperial, UCL, KCL, Brunel and QMUL are matched by sender domain. Each new one is read once by Claude Haiku (on the Pi's Claude login), which works out the university, labels it offer / decision / interview / action / update / marketing, and writes a short summary. Marketing is hidden. Senders live in config.toml.
  • Kind to the OLED: OLEDs burn in, so it runs at very low contrast (10 of 255) by day and minimum at night (night_mode = "blank" turns it off 23:00-07:00 instead; a button or unread uni mail overrides), switches off completely 08:00-15:00 on weekdays (only a button wakes it), nudges the whole picture by a pixel every minute, and uses dithered or segmented bars and outlined tiles.
  • Dark room: the installer switches off the Pi's green activity LED with a udev rule (/etc/udev/rules.d/99-statuspi-led.rules; delete it to bring the LED back).

Configuration

Everything is optional: ~/.config/statuspi/config.toml overrides the defaults in statuspi/config.py. See config.example.toml for the rotation timings, night hours, Gmail senders and the colour display (driver = "ssd1351").

Development

python -m statuspi preview --out screenshots          # render every page with demo data
python -m statuspi preview --colour --out screenshots # as the 1.5" colour SSD1351
python -m statuspi run --demo --emulate               # full loop, no hardware or network
python -m pytest tests

The plan and research behind it are in docs/INITIAL_PLAN.md.

Good luck with the offers.