summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Helper
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-07 17:35:47 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-07 17:35:47 +0100
commitb4d060e8f8f36a1befa42d60dbf328114d60eee7 (patch)
treeba1e3e63b557666e2ed75c80f90f40fdd3e6c852 /lib/DBInfoscreen/Helper
parent7e2a180398594aae2671567fb3ce8e3790beef5d (diff)
marudor.de: switch to v2 API
Diffstat (limited to 'lib/DBInfoscreen/Helper')
-rw-r--r--lib/DBInfoscreen/Helper/Marudor.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Helper/Marudor.pm b/lib/DBInfoscreen/Helper/Marudor.pm
index 41ba81e..5823761 100644
--- a/lib/DBInfoscreen/Helper/Marudor.pm
+++ b/lib/DBInfoscreen/Helper/Marudor.pm
@@ -88,7 +88,7 @@ sub get_train_utilization {
my $this_station = $train->station;
my @route = $train->route_post;
my $next_station;
- my $dep = $train->sched_departure->epoch . '000';
+ my $dep = $train->sched_departure->iso8601;
if ( @route > 1 ) {
$next_station = $route[1];
@@ -98,7 +98,7 @@ sub get_train_utilization {
}
$self->get_json_p( $self->{realtime_cache},
-"https://marudor.de/api/hafas/v1/auslastung/${this_station}/${next_station}/${train_no}/${dep}"
+"https://marudor.de/api/hafas/v2/auslastung/${this_station}/${next_station}/${train_no}/${dep}"
)->then(
sub {
my ($utilization_json) = @_;