tfl-cli

command module
v0.0.0-...-ea8c992 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 11 Imported by: 0

README ΒΆ

πŸš‡ TfL CLI

Go Reference GitHub License Build Go Report Card

A fast and minimal terminal app to check Transport for London (TfL) status and live departures, written in Go.

Status

✨ Features

  • Live status of TfL lines (Tube, Overground, Elizabeth Line, DLR)
  • Real-time departures for any TfL station
  • Config management to set preferences, such as home and work stations

πŸ“¦ Installation

go install github.com/jamesalexatkin/tfl-cli@latest

πŸš€ Usage

Line status (all lines)
tfl-cli status
TODO - Line status (single line)
tfl-cli status victoria
Live departures from a station
tfl-cli station 'Liverpool Street'
Help
tfl-cli h
tfl-cli help
tfl-cli -h
tfl-cli --help

βš™οΈ Configuration

The first time you run the app, a default .tfl.env file will be generated.

You will need to configure API credentials here before fetching any data. These can be generated by signing up for a free account on TfL's API portal.

Options
Key Description
app_id (Required) Your TfL API App ID for increased rate limits.
app_key (Required) Your TfL API Key. Used together with app_id.
departure_board_width Sets the character width for the departure board display. Handy for wide or narrow terminals.
num_departures Sets the number of departures to display on a departure board.
home_station Sets your default "home" station. Use with the station command.
work_station Sets your default "work" station. Use with the station command.

πŸ› οΈ Built with

🀝 Contributing

Pull requests welcome! If you have ideas or bug reports, feel free to open an issue.

πŸ“œ License

MIT Β© 2025 James Atkin

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL