2eecbab36540e922cd13d3192295ac343151b352
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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
docker compose logs screen- permission denied or "could not open port"?- ModemManager grabbing the port:
systemctl status ModemManager. Fix withsudo systemctl disable --now ModemManager(or a udev rule marking the deviceID_MM_DEVICE_IGNORE=1). - Wrong orientation: change
SCREEN_ORIENTATION(PORTRAIT, REVERSE_PORTRAIT, LANDSCAPE, REVERSE_LANDSCAPE). - 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).
Languages
Python
98.6%
Dockerfile
1.4%