Bigger next-pass panel with brightness on the ISS view, deploy on push

The map leaves out the polar caps (75° N to 60° S at the same scale) so the
next visible pass gets a 100 px panel: the time in 48 px type, the date, and
height, direction, estimated magnitude and clouds in 24 px. The magnitude is
the brightest moment of the pass by Matson's formula (standard magnitude -1.8).

A Gitea webhook now makes Coolify deploy every push to main, and Coolify
4.5.3 re-reads docker-compose.yml on each deploy, so no buttons are needed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rickzkmandClaude Opus 5.5 committed 2026-10-29 22:48:19 +01:00
1 parent 0de68bfce0
commit 517f0868db
7 files changed
+136 -27

No files matched your search

+14 -4
View File
@@ -9,7 +9,7 @@ shapes, glitch numbers) for the server stats, a star chart of tonight's sky and
|---|---|
| `weather` | The week ahead in the Czech weekday strip (today first and inverted: icon, max and min for each day), big `HH:MM` with seconds, date, current temperature and feels-like (`POCIT`) for Zlín, and a 12-hour rain probability bar graph with the hour under every bar and the total mm. From sunset to sunrise the whole screen turns into a reverse LCD (light segments on black) |
| `sky` | Star chart of the sky over Zlín right now, as seen lying on your back (north up, east left): bright stars, a few constellations, the planets, the Moon in its real phase, and the sun by day. Beside it: the clock, tonight's full darkness, what is up (height and direction) or rising soon, the next 12 hours of cloud with a one-line summary, and the next visible ISS pass. Redrawn every minute |
| `iss` | Dotted world map with day and night: where the ISS is now, its ground track 40 minutes back and 95 ahead, Zlín, height, speed and position, and the next pass visible from Zlín with the cloud cover for that hour. Redrawn every 10 s |
| `iss` | Dotted world map with day and night (75° N to 60° S, the ISS never leaves ±51.6°): where the ISS is now, its ground track 40 minutes back and 95 ahead, Zlín, height, speed and position. Below it, in large type, the next pass visible from Zlín: time and date, highest point, direction, estimated brightness (magnitude) and the cloud cover for that hour. Redrawn every 10 s |
| `server` | Cyberpunk style: CPU / RAM / disk gauges (red from 80 %), load, CPU temperature, uptime, Docker containers (readable names and status chips) and the busiest processes. Refreshed every second; the container list every 5 s and the process ranking over 3 s windows |
Design: `docs/superpowers/specs/2026-10-22-second-screen-design.md`.
@@ -17,8 +17,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`, 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
Edit `VIEW:` in `docker-compose.yml`, commit and `git push`. Coolify deploys every push to `main` by itself and
reads `docker-compose.yml` from the repository again on each deploy (see Deployment). An unknown or missing
`VIEW` shows an error screen naming the valid views and keeps the container idle (no restart loop).
## Add a view
@@ -40,7 +40,13 @@ Edit `VIEW:` in `docker-compose.yml`, commit, `git push`, then in Coolify press
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 **Reload Compose** if `docker-compose.yml` changed, then **Deploy** (no webhook).
- **Update:** commit and `git push`. A Gitea webhook (repository → Settings → Webhooks, "Coolify second-screen
deploy main") posts every push to `main` to `https://coolify.madeinzlin.cz/webhooks/source/gitea/events/manual`,
signed with the app's Gitea secret from Coolify (application → Webhooks → Manual Git webhooks → Gitea). Coolify
checks the signature and deploys. Since Coolify 4.5.3 every deploy reads `docker-compose.yml` from the repository
again, so **Reload Compose** is no longer needed. Check a deploy in Coolify → Deployment Logs (it says
**Webhook**) or with `ssh coolify 'docker ps'`. **Redeploy** in Coolify still works by hand.
- A push deploys nothing when every commit in it has `[skip ci]` or `[skip cd]` in its message.
- **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.
@@ -95,6 +101,10 @@ The screen library is pinned to one upstream commit in the `Dockerfile` (`LCD_CO
retried after 30 minutes because CelesTrak blocks eager clients) and the cloud cover (Open-Meteo, every 15 minutes)
come from the network. An ISS pass counts as visible when the station is sunlit while the sun here is more than 6°
below the horizon. By day the star chart still shows the stars where they stand.
- ISS brightness is an estimate: the brightest moment of the pass by Robert Matson's formula for a diffusely
reflecting sphere, from the distance and the sun–ISS–observer angle, with a standard magnitude of −1.8 at 1000 km
(`ISS_STD_MAG` in `astro.py`, observers quote −1.3 to −1.8). The real ISS is not a sphere and the angle of its
solar panels changes, so a pass can differ by about a magnitude.
- 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.
- 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),