hafas-m - Interface to the DeutscheBahn/HAFAS online departure monitor
hafas-m [-d date] [-t time] [-m motlist] [-s service] station
version 4.11
hafas-m is an interface to HAFAS-based departure monitors such as the one available at https://reiseauskunft.bahn.de//bin/bhftafel.exe/dn.
It requests all departures at station (optionally filtered by date, time, route and means of transport) and lists them on stdout.
Show arrivals instead of departures, including trains ending at the specified station. Note that this causes the output to display the start instead of the end station.
Date to list departures for. Default: today.
Print result(s) as JSON.
List known HAFAS installations. A HAFAS service from this list can be querie using --service.
By default, hafas-m shows all modes of transport arriving/departing at the specified station. With motlist, it is possible to either exclude a list of modes, or exclusively show only a select list of modes.
To exclude modes, set motlist to !mot1,!mot2,...
To show them exclusively, set motlist to mot1,mot2,...
The mot types depend on the used service. Use -m help
to list them.
Request arrivals/departures using the API provided by service, defaults to DB (Deutsche Bahn). See --list for a list of known services.
Time to list departures for. Default: now.
Show version information.
Zero unless things went wrong.
None.
The non-default services (anything other than DB) are not well tested.
Copyright (C) 2015-2020 by Daniel Friesel <derf@finalrewind.org>
This program is licensed under the same terms as Perl itself.