No description
|
All checks were successful
lint / ruff (push) Successful in 45s
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> |
||
|---|---|---|
| .forgejo/workflows | ||
| .vscode | ||
| notebooks | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| lint.sh | ||
| pyproject.toml | ||
| README.md | ||
| sync.sh | ||
| uv.lock | ||
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