Send only the changed regions of each frame
The link moves ~150 KB/s, so a full frame takes 2 s. After the first frame the runner diffs against what the screen shows and sends tight boxes; full frame on big changes, after a failed push, and every 15 minutes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
c3a42cf35b
commit
edba341f30
5 files changed
+205
-11
No files matched your search
@@ -14,7 +14,8 @@ Plan: `docs/superpowers/plans/2026-10-22-second-screen.md`. Previews: `docs/prev
|
||||
|
||||
## Switching views
|
||||
|
||||
Edit `VIEW:` in `docker-compose.yml`, commit, `git push`, press **Deploy** in Coolify. An unknown or missing
|
||||
Edit `VIEW:` in `docker-compose.yml`, commit, `git push`, then in Coolify press **Reload Compose** on the app page
|
||||
(it keeps its own copy of the compose file) and **Deploy**. An unknown or missing
|
||||
`VIEW` shows an error screen naming the valid views and keeps the container idle (no restart loop).
|
||||
|
||||
## Add a view
|
||||
@@ -36,7 +37,7 @@ Edit `VIEW:` in `docker-compose.yml`, commit, `git push`, press **Deploy** in Co
|
||||
so Coolify cannot use a deploy key.
|
||||
- Build pack **Docker Compose**, base directory `/`, **Docker Compose Location `/docker-compose.yml`**.
|
||||
- No domain and no environment variables: the defaults in `docker-compose.yml` fit this server.
|
||||
- **Update:** commit, `git push`, press **Deploy** (no webhook).
|
||||
- **Update:** commit, `git push`, press **Reload Compose** if `docker-compose.yml` changed, then **Deploy** (no webhook).
|
||||
- **Logs:** Coolify → the application → Logs, or `ssh coolify 'docker logs --tail 30 <container>'`.
|
||||
- Only one container can hold a screen's serial port. Stop manual copies before deploying.
|
||||
|
||||
@@ -84,4 +85,7 @@ The screen library is pinned to one upstream commit in the `Dockerfile` (`LCD_CO
|
||||
- The weather graph is the next 12 hours from now, so late in the day it runs into tomorrow.
|
||||
- Server stats: process CPU is a share of the whole machine and grouped by command name; temperature is the CPU
|
||||
package sensor if the host has one, else the hottest thermal zone.
|
||||
- Seconds are redrawn once per second with a small partial update.
|
||||
- The screen's link moves about 150 KB/s (measured 2026-10-22: a full 480x320 frame takes 1.96 s, a 96x52 box 65 ms),
|
||||
and time grows with the bytes sent. So after the first frame the runner sends only the rectangles that changed
|
||||
(`regions.py`), a full frame when more than 60 % of the screen changed or after any failed push, and a full refresh
|
||||
every 15 minutes. The weather seconds are a small patch once per second.
|
||||
Reference in new issue
Block a user