diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-10-11 11:29:24 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-10-11 11:29:24 +0200 |
commit | ca76f36afd153f7731edcc4d81ab58fe7a10b554 (patch) | |
tree | 5766ad57bf1a2ea5c0b05d459f7efa90d0935622 | |
parent | a7c3539c6f0cb0497a24f579a98578203eea18a7 (diff) |
switch to transport.rest v5
-rw-r--r-- | lib/DBInfoscreen/Controller/Map.pm | 2 | ||||
-rw-r--r-- | lib/DBInfoscreen/Helper/HAFAS.pm | 5 | ||||
-rw-r--r-- | templates/about.html.ep | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/DBInfoscreen/Controller/Map.pm b/lib/DBInfoscreen/Controller/Map.pm index 36075f1..f654930 100644 --- a/lib/DBInfoscreen/Controller/Map.pm +++ b/lib/DBInfoscreen/Controller/Map.pm @@ -12,7 +12,7 @@ use List::Util qw(); my $dbf_version = qx{git describe --dirty} || 'experimental'; my $strp = DateTime::Format::Strptime->new( - pattern => '%Y-%m-%dT%H:%M:%S.000%z', + pattern => '%Y-%m-%dT%H:%M:%S%z', time_zone => 'Europe/Berlin', ); diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm index d9c6516..2e832be 100644 --- a/lib/DBInfoscreen/Helper/HAFAS.pm +++ b/lib/DBInfoscreen/Helper/HAFAS.pm @@ -222,7 +222,8 @@ sub trainsearch_p { $promise->resolve($result); } else { - $self->{log}->warn("hafas->trainsearch_p($opt{train_no}): train not found"); + $self->{log}->warn( + "hafas->trainsearch_p($opt{train_no}): train not found"); $promise->reject("Zug $opt{train_no} nicht gefunden"); } @@ -346,7 +347,7 @@ sub get_polyline_p { my ( $self, $trip_id, $line ) = @_; my $url - = "https://2.db.transport.rest/trips/${trip_id}?lineName=${line}&polyline=true"; + = "https://v5.db.transport.rest/trips/${trip_id}?lineName=${line}&polyline=true"; my $cache = $self->{realtime_cache}; my $promise = Mojo::Promise->new; diff --git a/templates/about.html.ep b/templates/about.html.ep index 0c66e25..7197592 100644 --- a/templates/about.html.ep +++ b/templates/about.html.ep @@ -12,7 +12,7 @@ Meldungen und Ankunft/Abfahrt an Unterwegshalten: DB HAFAS<br/> Wagenreihung: <a href="https://finalrewind.org/projects/Travel-Status-DE-DBWagenreihung/">Travel::Status::DE::DBWagenreihung</a> v<%= $Travel::Status::DE::DBWagenreihung::VERSION %><br/> - Karte: <a href="https://2.db.transport.rest/">transport.rest</a> von <a href="https://github.com/derhuerst">@derhuerst</a><br/> + Karte: <a href="https://v5.db.transport.rest/">transport.rest</a> von <a href="https://github.com/derhuerst">@derhuerst</a><br/> <br/> Grundlage der <a href="https://data.deutschebahn.com/dataset/zugbildungsplanzugbildungsplan-zpar">Wagengattungsdaten</a> © DB Fernverkehr AG, lizensiert unter CC-BY 4.0 <br/> |