Loading README +2 −2 Original line number Diff line number Diff line db-fakedisplay - Show train departures, as seen on the displays on most main stations ------------------------------------------------------------------------------------- db-fakedisplay - Infoscreen for DB departures --------------------------------------------- * <http://finalrewind.org/projects/db-fakedisplay/> Loading index.pl +3 −3 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ sub get_results_for { my ( $backend, $station, %opt ) = @_; my $cache = Cache::File->new( cache_root => '/tmp/db-fake', cache_root => '/tmp/db-fakedisplay', default_expires => $refresh_interval . ' sec', lock_level => Cache::File::LOCK_LOCAL(), ); Loading Loading @@ -166,7 +166,7 @@ sub handle_request { : $Travel::Status::DE::DeutscheBahn::VERSION; $self->stash( departures => [] ); $self->stash( title => 'db-fakedisplay' ); $self->stash( title => 'db-infoscreen' ); $self->stash( version => $VERSION ); if ( not( $template ~~ [qw[clean json marudor_v1 marudor multi single]] ) ) Loading Loading @@ -678,7 +678,7 @@ app->config( hypnotoad => { accepts => 10, listen => ['http://*:8092'], pid_file => '/tmp/db-fake.pid', pid_file => '/tmp/db-fakedisplay.pid', workers => $ENV{VRRFAKEDISPLAY_WORKERS} // 2, }, ); Loading t/01-basic.t +1 −1 Original line number Diff line number Diff line Loading @@ -5,6 +5,6 @@ use FindBin; require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new; $t->get_ok('/')->status_is(200)->content_like(qr/db-fakedisplay/); $t->get_ok('/')->status_is(200)->content_like(qr/db-infoscreen/); done_testing(); templates/layouts/default.html.ep +3 −3 Original line number Diff line number Diff line <!DOCTYPE html> <html> <head> <title><%= stash('title') // 'db-fakedisplay' %></title> <title><%= stash('title') // 'db-infoscreen' %></title> <meta charset="utf-8"> % if ($self->stash('refresh_interval')) { <meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/> Loading Loading @@ -170,12 +170,12 @@ nur Züge via Bochum oder Hamm)</li> <li><a href="http://marudor.de/">Handyfreundliches Interface</a> von <a href="https://twitter.com/marudor">@marudor</a></li> <li><a href="https://iris.noncd.db.de/wbt/js/index.html?typ=ab&style=qrab&bhf=EE&SecLang=&Zeilen=40&footer=0&disrupt=1" >DeutscheBahn IRIS</a> und <a href="http://www.db-netz.de/file/2361656/data/betriebsstellen.pdf">betriebsstellen.pdf</a></li> <li><a href="http://vrrf.finalrewind.org/">vrr-fakedisplay</a></li> <li><a href="http://vrrf.finalrewind.org/">vrr-infoscreen</a></li> </ul> </div> <!-- notes --> <div class="about"> <a href="http://finalrewind.org/projects/db-fakedisplay/">db-fakedisplay</a> <a href="http://finalrewind.org/projects/db-fakedisplay/">db-infoscreen</a> v<%= stash('version') // '???' %> </div> % } Loading Loading
README +2 −2 Original line number Diff line number Diff line db-fakedisplay - Show train departures, as seen on the displays on most main stations ------------------------------------------------------------------------------------- db-fakedisplay - Infoscreen for DB departures --------------------------------------------- * <http://finalrewind.org/projects/db-fakedisplay/> Loading
index.pl +3 −3 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ sub get_results_for { my ( $backend, $station, %opt ) = @_; my $cache = Cache::File->new( cache_root => '/tmp/db-fake', cache_root => '/tmp/db-fakedisplay', default_expires => $refresh_interval . ' sec', lock_level => Cache::File::LOCK_LOCAL(), ); Loading Loading @@ -166,7 +166,7 @@ sub handle_request { : $Travel::Status::DE::DeutscheBahn::VERSION; $self->stash( departures => [] ); $self->stash( title => 'db-fakedisplay' ); $self->stash( title => 'db-infoscreen' ); $self->stash( version => $VERSION ); if ( not( $template ~~ [qw[clean json marudor_v1 marudor multi single]] ) ) Loading Loading @@ -678,7 +678,7 @@ app->config( hypnotoad => { accepts => 10, listen => ['http://*:8092'], pid_file => '/tmp/db-fake.pid', pid_file => '/tmp/db-fakedisplay.pid', workers => $ENV{VRRFAKEDISPLAY_WORKERS} // 2, }, ); Loading
t/01-basic.t +1 −1 Original line number Diff line number Diff line Loading @@ -5,6 +5,6 @@ use FindBin; require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new; $t->get_ok('/')->status_is(200)->content_like(qr/db-fakedisplay/); $t->get_ok('/')->status_is(200)->content_like(qr/db-infoscreen/); done_testing();
templates/layouts/default.html.ep +3 −3 Original line number Diff line number Diff line <!DOCTYPE html> <html> <head> <title><%= stash('title') // 'db-fakedisplay' %></title> <title><%= stash('title') // 'db-infoscreen' %></title> <meta charset="utf-8"> % if ($self->stash('refresh_interval')) { <meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/> Loading Loading @@ -170,12 +170,12 @@ nur Züge via Bochum oder Hamm)</li> <li><a href="http://marudor.de/">Handyfreundliches Interface</a> von <a href="https://twitter.com/marudor">@marudor</a></li> <li><a href="https://iris.noncd.db.de/wbt/js/index.html?typ=ab&style=qrab&bhf=EE&SecLang=&Zeilen=40&footer=0&disrupt=1" >DeutscheBahn IRIS</a> und <a href="http://www.db-netz.de/file/2361656/data/betriebsstellen.pdf">betriebsstellen.pdf</a></li> <li><a href="http://vrrf.finalrewind.org/">vrr-fakedisplay</a></li> <li><a href="http://vrrf.finalrewind.org/">vrr-infoscreen</a></li> </ul> </div> <!-- notes --> <div class="about"> <a href="http://finalrewind.org/projects/db-fakedisplay/">db-fakedisplay</a> <a href="http://finalrewind.org/projects/db-fakedisplay/">db-infoscreen</a> v<%= stash('version') // '???' %> </div> % } Loading