%= stylesheet '/main.css'
%= javascript '/jquery-2.1.1.min.js'
%= javascript '/image.js'
% if ($stop) {
% if ($errstr) {
Received an error from the backend service:
% }
% elsif ($frontend eq 'png') {
<%= $stop %>.png?<%= $params %>" alt=""
id="display" height="<%= $height * 4 %>" width="<%= $width * 4 %>"/>
% }
% elsif ($frontend eq 'html') {
% }
% elsif ($frontend eq 'infoscreen') {
<%= $stop %>.html?<%= $params %>&template=infoscreen">Infoscreen for
<%= $city %> <%= $stop %>
Preview:
% }
% elsif ($frontend eq 'json') {
<%= $stop %>.json?<%= $params %>">JSON data for
<%= $city %> <%= $stop %>
Data is cached for 1 minute: JSON format:
- error: err string if an error occured, otherwise null
- preformatted: strings used by the PNG / HTML frontend
- raw:
% if (param('backend') and param('backend') eq 'db') {
serialized
Travel::Status::DE::DeutscheBahn-objects, see the
::Result
documentation
% }
% else {
serialized
Travel::Status::DE::VRR-objects, see the
::Result
and
::Line
documentation
% }
- version: Program version (string, not numeric)
% }
% } # ($city and $stop)
% else {
VRR-Fakedisplay shows the next departures at a public transit stop, just like
the Lumino LED displays used at some stops.
It works best for the VRR (Verkehrsverbund Rhein-Ruhr), but also supports most
other German transit networks.
% }
notes:
- The EFA backend does not support Umlauts
- For Düsseldorf, the DB backend usually gives better results
- If you write the city correctly (like "Essen", not "essen"), vrr-fake can
shorten destination names
- Example