Harden main loop and store; by-id device default, BOARD_TZ
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
8649d3abd0
commit
44a1b3cf8c
7 files changed
+100
-30
No files matched your search
@@ -20,11 +20,11 @@ Find the stable device path (survives replug/reboot, unlike `ttyACM0`):
|
||||
|
||||
ls -l /dev/serial/by-id/
|
||||
|
||||
SCREEN_DEVICE=/dev/serial/by-id/<your-device> docker compose up --build -d
|
||||
docker compose up --build -d
|
||||
docker compose logs -f screen
|
||||
|
||||
Timetables are cached in the `bus-board-data` volume (`/data`); they refresh on
|
||||
start and daily at 03:00 (retry every 15 min after a failure).
|
||||
start (only if the cache is older than 20 h) and daily at 03:00 (retry every 15 min after a failure).
|
||||
|
||||
## If something is wrong
|
||||
|
||||
@@ -39,10 +39,11 @@ start and daily at 03:00 (retry every 15 min after a failure).
|
||||
|
||||
| Variable | Default | |
|
||||
|---|---|---|
|
||||
| `SCREEN_DEVICE` | `/dev/ttyACM0` | serial device, also passed into the container |
|
||||
| `SCREEN_DEVICE` | `/dev/serial/by-id/usb-2017-2-25_UsbMonitor_USB35INCHIPSV2-if00` | serial device, also passed into the container |
|
||||
| `SCREEN_ORIENTATION` | `REVERSE_LANDSCAPE` | flip to `LANDSCAPE` if upside-down |
|
||||
| `SCREEN_BRIGHTNESS` | `50` | 0–100 |
|
||||
| `TZ` | `Europe/Prague` | time zone for departures |
|
||||
| `BOARD_TZ` | `Europe/Prague` | time zone for departures (the container's own `TZ` is ignored) |
|
||||
| `TZ` | `Europe/Prague` | container time zone (logs only) |
|
||||
| `DATA_DIR` | `/data` | cache directory |
|
||||
| `LINES_FILE` | `/app/lines.yaml` | line/stop/URL list |
|
||||
|
||||
|
||||
Reference in new issue
Block a user