From b4d060e8f8f36a1befa42d60dbf328114d60eee7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 7 Dec 2020 17:35:47 +0100 Subject: marudor.de: switch to v2 API --- lib/DBInfoscreen/Helper/Marudor.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/DBInfoscreen') 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) = @_; -- cgit v1.2.3