https://github.com/ayubmalik/trams
Live Metrolink tram departure information for the Greater Manchester area in the UK.
https://github.com/ayubmalik/trams
cli gcp-cloud-functions golang lipgloss metrolink tfgm
Last synced: 6 months ago
JSON representation
Live Metrolink tram departure information for the Greater Manchester area in the UK.
- Host: GitHub
- URL: https://github.com/ayubmalik/trams
- Owner: ayubmalik
- License: mit
- Created: 2021-06-22T19:59:03.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T20:01:35.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T00:36:49.294Z (about 2 years ago)
- Topics: cli, gcp-cloud-functions, golang, lipgloss, metrolink, tfgm
- Language: Go
- Homepage:
- Size: 2.46 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# trams
A command line application written in Go to display realtime departure information for Metrolink trams in the [Transport for Greater Manchester (TfGM)](https://tfgm.com/public-transport/tram) 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](https://github.com/ayubmalik/tramsfunc).
## Display departure information
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.**

## List station codes and names
To get a list of all the station codes (e.g. ABM, CHO etc) run the `trams list` command.

## Help and version information
```
./trams help
```
```
./trams version
```
## Installation
As well as building from this source repository, you can download a binary file for Linux, Mac and Windows from the [Releases page](https://github.com/ayubmalik/trams/releases) 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
```
## Lipgloss
All the colours and layout were generated using the awesome [Lipgloss](https://github.com/charmbracelet/lipgloss) library!