departures

command module
v0.1.2-0...-ef2143f Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 10 Imported by: 0

README

departures-interactive

Show departure times for your Berlin public transport station. This is a fork of the original departures intended to run on info displays or in the background

screenshot of a departure table

install

To install from source you need to have a current Go version installed.

go get -u github.com/buengese/departures

Now you should have the departures binary installed in your $GOPATH/bin directory. You can call it from there or add the directory to your $PATH.

usage

First you need to find out the ID of your station. To do this run the tool with the -search parameter.

~$ departures -search="Alexanderplatz"

This should help you identify the station you want to look at. Now you can request the timetable for Alexanderplatz.

~$ departures -id="900000100003"

You can limit the lines and directions shown. Multiple values must be separated by a comma.

~$ departures -id="900000100003" -filter-line="M4" -filter-destination="S Hackescher Markt"

You can also create a config file that allows displaying an arbitrary number of stations at the same time. An example config file is included in this repository

~$ departures -config conf.json

attribution

I'm using https://2.bvg.transport.rest to request the current timetable data. Thanks to derhuerst.

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