Robin Cole has published a live UK train departure board for the Pimoroni Presto on GitHub. It pulls data from National Rail Darwin through the Rail Data Marketplace REST/JSON API. There is no Raspberry Pi, server, cloud function or translation proxy in the chain. The legacy SOAP service is not used.
Setup is two local files. A secrets file holds credentials, and config.py holds the station list, the Waterloo destination filter, the RDM URL, the refresh interval, screen brightness and an inactivity timeout. Setting the timeout to zero keeps the display on all the time. Both real config files are gitignored.
Upload the code over USB. Replacing main.py makes the station picker start with the board, or keep the stock launcher and upload train_display.py instead, which shows up in the carousel with the built-in travel icon. The repo also includes a dependency-free host test suite and a renderer preview you can run against a connected Presto without installing files.…