Skip to content

A Docker container for the Raspberry Pi to display replica near real-time UK railway station departure data on SSD1322 screens.

Notifications You must be signed in to change notification settings

googanhiem/uk-train-departure-display-docker

 
 

Repository files navigation

A replica, near real-time, miniature UK railway station train departure sign based upon a Raspberry Pi Zero and 256x64 SPI OLED display(s). Uses the publicly available OpenLDBWS API by National Rail Enquiries.

This version is designed to work better on docker (without balena), though it only has support for one display. It requires more hands on editing to work, so you should be familiar with Docker and a little bit of python to use this.

commands below do not work yet

First run

docker pull ghcr.io/googanhiem/uk-train-departure-display-docker:latest

Then run (putting your updated config.py file in your home dir /train-sign/)

docker run -v ~/train-sign/config.py:/src/config.py ghcr.io/googanhiem/uk-train-departure-display-docker:latest --restart=always redis

The config should look like, this config.py file - More details on getting a station code and API key below in the configuration

Highlights

  • See local departures: Display the depatures from your local station at home for up to date train information.
  • 3D-printable cases: Print your own miniature case to keep everything tidy - both desktop and 'hanging' style available.

How to build

Check out the documentation for full hardware/software requirements and complete build guide.

Credits

Chrisys did a lot of this, I just took stuff out, ha.

A big thanks to Chris Hutchinson who originally started this project and inspired me to develop it further. Blake made some further improvements and this project was forked from there.

The fonts used were painstakingly put together by DanielHartUK and can be found on GitHub at https://github.com/DanielHartUK/Dot-Matrix-Typeface - A huge thanks for making that resource available!

Thanks to @jajasilver and @MatthewAscough for forming the basis of the OpenLDBWS implementation.

About

A Docker container for the Raspberry Pi to display replica near real-time UK railway station departure data on SSD1322 screens.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.4%
  • Dockerfile 3.6%