NAME

db-fakedisplay - Show train departures, as seen on the displays on most main stations

SYNOPSIS

db-fakedisplay [-t template] station [platforms ...]

VERSION

version 0.00

DESCRIPTION

db-fakedisplay outputs HTML showing the next departure for every platform on station on stdout. The HTML is styled to look like the LCDs installed on most (major) stations.

If no platforms were specified, db-fakedisplay shows all platforms for which departures are reported.

OPTIONS

-t, --template single-lcd.html|filename

Select template. Specify either a filename or one of the templates shipped with db-fakedisplay (right now only single-lcd.html is available, which is also the default).

-V, --version

Show version information.

TEMPLATES

db-fakedisplay uses HTML::Template(3pm) to create the display. In case you want to create a custom template, the following variables are available:

departures

This is a loop variable, use it with <TMPL_LOOP departures> foo <TMPL_VAR bar> ... </TMPL_LOOP>.

This loop runs once for each requested platform. Inside it, you can use the following variables:

platform

The platform from which the train departs

time

The departure time (HH:MM)

train

The train / line name, something like "RE 10111" or "S 1"

via

A loop variable. For each run, the stop variable contains one of the interesting stops the train will pass on its route.

By default, it runs three times.

destination

The train's destination

info

Additional information about the train, such as delays. Unset if no information is available (use <TMPL_IF info> ... </TMPL_IF>).

no-data

Set if no departures were available for the requested platform.

EXIT STATUS

Zero.

CONFIGURATION

None.

DEPENDENCIES

* File::ShareDir(3pm)
* HTML::Template(3pm)
* Travel::Status::DE::DeutscheBahn(3pm)

BUGS AND LIMITATIONS

Unknown

SEE ALSO

There is some example output available at http://finalrewind.org/projects/db-fakedisplay/.

AUTHOR

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

LICENSE

  0. You just DO WHAT THE FUCK YOU WANT TO.