No description
Find a file
Andras Schmelczer 90b692da39
All checks were successful
lint / ruff (push) Successful in 45s
Move secrets and URLs out of source into .env
Adds a stdlib-only loader (src/lib/env.py) that walks up to find the
nearest .env. display.py and notebooks/_helpers.py now `require()` the
config values; wifi-check.sh sources .env to derive its probe host. The
.env file is gitignored; .env.example documents the required keys. The
existing tokens are still present in git history and will be scrubbed
in the next commit; rotate them after the rewrite.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 11:22:54 +01:00
.forgejo/workflows Lint 2026-05-03 10:39:31 +01:00
.vscode init 2026-03-30 08:09:47 +01:00
notebooks Move secrets and URLs out of source into .env 2026-05-03 11:22:54 +01:00
src Move secrets and URLs out of source into .env 2026-05-03 11:22:54 +01:00
.env.example Move secrets and URLs out of source into .env 2026-05-03 11:22:54 +01:00
.gitignore Move secrets and URLs out of source into .env 2026-05-03 11:22:54 +01:00
CLAUDE.md Move secrets and URLs out of source into .env 2026-05-03 11:22:54 +01:00
lint.sh Lint 2026-05-03 10:39:31 +01:00
pyproject.toml Claude clean up 2026-05-03 11:06:19 +01:00
README.md Claude clean up 2026-05-03 11:06:19 +01:00
sync.sh Move secrets and URLs out of source into .env 2026-05-03 11:22:54 +01:00
uv.lock Claude clean up 2026-05-03 11:06:19 +01:00

Installation

sudo raspi-config

  • Enable SPI
sudo apt update
sudo apt upgrade
sudo apt install -y python3-pip python3-pil python3-smbus python3-numba
sudo swapoff -a
sudo systemctl mask swap.target
sudo systemctl disable --now bluetooth

sudo nmcli c modify netplan-wlan0-HiddenPlace 802-11-wireless.powersave 2

Execute sudo crontab -e and add

@reboot /usr/sbin/iw wlan0 set power_save off
*/5 * * * * /home/andras/frame/wifi-check.sh >> /home/andras/wifi.log 2>&1

Execute crontab -e and add

*/15 * * * * cd ~/frame && python3 display.py -o 90 >> ~/frame.log 2>&1

Reduce journald writes Edit /etc/systemd/journald.conf:

Storage=volatile