A command line application written in Go to display realtime departure information for Metrolink trams in the Transport for Greater Manchester (TfGM) area in the UK. The information displayed is the same as displayed on the physical departure boards at each Metrolink station.
The backend API providing the data is a GCP Cloud Function also written in Go.The repository is here.
To display information for a specific station run the trams display
command with a list of all short station codes you want to display e.g. ABM CHO EXS etc. If you do not provide any short station codes then all Metrolink stations will be displayed.
To get a list of all the station codes (e.g. ABM, CHO etc) run the trams list
command.
./trams help
./trams version
As well as building from this source repository, you can download a binary file for Linux, Mac and Windows from the Releases page under the Assets section.
Once downloaded you will probably have to make the binary executable.
For example if you download the Linux binary trams-linux-amd6
you can run the following commands to rename the binary and make it executable assuming it is in your Downloads
folder).
mv ~/Downloads/trams-linux-amd64 ~/Downloads/trams
chmod +x ~/Downloads/trams
~/Downloads/trams display
All the colours and layout were generated using the awesome Lipgloss library!