The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

efa-m - Unofficial interface to the efa.vrr.de departure monitor

SYNOPSIS

efa-m [-Lr] [-d dd.mm.yyyy] [-t hh:mm] [-l lines] [-p platforms] [-u url] city [type:]name

VERSION

version 1.09

DESCRIPTION

efa-m lists upcoming tram, bus and train departures at the location name in city.

By default, name refers to a stop, this can be changed by specifying type. Supported types are address and poi (point of interest).

OPTIONS

-d, --date dd.mm.yyyy

Show departures for date instead of today. May also be specified as dd.mm.

-L, --linelist

Do not show departures. Instead, list all lines serving the specified place. Note that this information may be incomplete -- only lines which are in service either at the time of the efa-m call or at the time specifed using --date and --time are guaranteed to be included.

-l, --line lines

Only show departures of lines (comma-separatad list, option may be repeated)

-o, --offset minutes

Ignore departures which are less than minutes from now.

-p, --platform platforms

Only show departures at platforms (comma-separated list, option may be repeated). Note that the Bstg. / Gleis prefix must be omitted.

-r, --relative

Use relative departure times.

-t, --time hh:mm

Show departures starting at time instead of now.

-u, --efa-url url

URL to the EFA entry point, defaults to http://efa.vrr.de/vrr/XSLT_DM_REQUEST. Depending on your location, some urls may contain more specific data than others. See Travel::Status::DE::EFA(3pm) for alternatives.

--timeout seconds

Set timeout for HTTP requests. Default: 10 seconds. Set to 0 or a negative value to disable it.

-V, --version

Show version information.

EXIT STATUS

Normally zero. 1 means efa-m was called with invalid options, 2 indicates a request error from Travel::Status::DE::EFA(3pm).

CONFIGURATION

None.

DEPENDENCIES

  • Class::Accessor(3pm)

  • LWP::UserAgent(3pm)

  • Travel::Status::DE::EFA(3pm)

  • XML::LibXML(3pm)

BUGS AND LIMITATIONS

efa-m uses the VRR EFA service by default, which seems to contain the greatest available set of information. However, some cities (e.g. Berlin or parts of Hamburg) are incomplete. efa-m is not yet able to choose the appropriate EFA URL for these by itself, it needs to be done manually with the -u, --efa-url option.

AUTHOR

Copyright (C) 2011-2014 by Daniel Friesel <derf@finalrewind.org>

LICENSE

This program is licensed under the same terms as Perl itself.