2026-10-07 00:20:00 +02:00

bus-department-schedule

Drives a 3.5" Turing Smart Screen (Rev A, 320x480, USB serial) from a Docker container on the Coolify server. Goal: show local bus departures.

Current stage: hardware smoke test. clock.py draws a clock. Once it runs on the server, it gets replaced by the departure board.

Run on the server

Find a stable device path (survives replug/reboot, unlike ttyACM0):

ls -l /dev/serial/by-id/

Then, from this folder on the server:

SCREEN_DEVICE=/dev/serial/by-id/<your-device> docker compose up --build

In Coolify: new resource -> Docker Compose from the Gitea repo, and set SCREEN_DEVICE in the environment variables.

If the screen stays blank

  1. docker compose logs screen - permission denied or "could not open port"?
  2. ModemManager grabbing the port: systemctl status ModemManager. Fix with sudo systemctl disable --now ModemManager (or a udev rule marking the device ID_MM_DEVICE_IGNORE=1).
  3. Wrong orientation: change SCREEN_ORIENTATION (PORTRAIT, REVERSE_PORTRAIT, LANDSCAPE, REVERSE_LANDSCAPE).
  4. Only one process can hold the port - make sure nothing else uses it.

Config (env vars)

Variable Default
SCREEN_DEVICE /dev/ttyACM0 serial device, also passed into the container
SCREEN_ORIENTATION REVERSE_LANDSCAPE flip to LANDSCAPE if the picture is upside-down
SCREEN_BRIGHTNESS 50 0-100
TZ Europe/Prague clock timezone

The screen library is pinned to one upstream commit in the Dockerfile (LCD_COMMIT).

S
Description
No description provided
Readme
526 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 98.6%
Dockerfile 1.4%