% if ($journey->{checked_in}) {
<%= $name %> ist unterwegs % if ($public_level & 0x04 and $journey->{comment}) {

„<%= $journey->{comment} %>“

% }

% if ($journey->{train_line}) {

<%= $journey->{train_type} %> <%= $journey->{train_line} %> <%= $journey->{train_no} %>
% } % else {
<%= $journey->{train_type} %> <%= $journey->{train_no} %>
% }
% if ($journey->{departure_countdown} > 120) { Abfahrt in <%= sprintf('%.f', $journey->{departure_countdown} / 60) %> Minuten % } % elsif ($journey->{departure_countdown} > 60) { Abfahrt in einer Minute % } % elsif ($journey->{departure_countdown} > 0) { Abfahrt in weniger als einer Minute % } % elsif (defined $journey->{arrival_countdown}) { % if ($journey->{arrival_countdown} > 60) { Ankunft in <%= sprintf('%.f', $journey->{arrival_countdown} / 60) %> Minute<%= sprintf('%.f', $journey->{arrival_countdown} / 60) == 1 ? '' : 'n' %> % } % elsif ($journey->{arrival_countdown} > 0) { Ankunft in weniger als einer Minute % } % else { Ziel erreicht % } % if ($journey->{arrival_countdown} < (60 * 15) and $journey->{arr_platform}) {
auf Gleis <%= $journey->{arr_platform} %> % } % } % elsif ($journey->{arr_name}) { Ankunft in mehr als zwei Stunden % }

<%= $journey->{dep_name} %>
<%= $journey->{real_departure}->strftime('%H:%M') %> % if ($journey->{real_departure}->epoch != $journey->{sched_departure}->epoch) { (<%= sprintf('%+d', ($journey->{real_departure}->epoch - $journey->{sched_departure}->epoch)/60) %>) % }
% if ($journey->{arr_name}) { <%= $journey->{arr_name} %>
% } % else { Fahrt ins Blaue
% } % if ($journey->{real_arrival}->epoch) { <%= $journey->{real_arrival}->strftime('%H:%M') %> % if ($journey->{real_arrival}->epoch != $journey->{sched_arrival}->epoch) { (<%= sprintf('%+d', ($journey->{real_arrival}->epoch - $journey->{sched_arrival}->epoch)/60) %>) % } % } % elsif ($journey->{arr_name}) { noch nicht bekannt % }
% for my $station (@{$journey->{route_after}}) { % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) { % last; % } % if (($station->[1]{rt_arr_countdown} // 0) > 0) { <%= $station->[0] %>
<%= $station->[1]{rt_arr}->strftime('%H:%M') %> % if ($station->[1]{sched_arr}->epoch != $station->[1]{rt_arr}->epoch) { %= sprintf('(%+d)', ($station->[1]{rt_arr}->epoch - $station->[1]{sched_arr}->epoch ) / 60); % } % last; % } % if (($station->[1]{rt_dep_countdown} // 0) > 0) { <%= $station->[0] %>
<%= $station->[1]{rt_arr}->strftime('%H:%M') %> → <%= $station->[1]{rt_dep}->strftime('%H:%M') %> % if ($station->[1]{sched_dep}->epoch != $station->[1]{rt_dep}->epoch) { %= sprintf('(%+d)', ($station->[1]{rt_dep}->epoch - $station->[1]{sched_dep}->epoch ) / 60); % } % last; % } % }
% for my $station (@{$journey->{route_after}}) { % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) { % last; % } % if (($station->[1]{rt_arr_countdown} // 0) > 0) { Nächster Halt:
<%= $station->[0] %>
<%= $station->[1]{rt_arr}->strftime('%H:%M') %> % if ($station->[1]{sched_arr}->epoch != $station->[1]{rt_arr}->epoch) { %= sprintf('(%+d)', ($station->[1]{rt_arr}->epoch - $station->[1]{sched_arr}->epoch ) / 60); % } % last; % } % if (($station->[1]{rt_dep_countdown} // 0) > 0) { Aktueller Halt:
<%= $station->[0] %>
<%= $station->[1]{rt_arr}->strftime('%H:%M') %> → <%= $station->[1]{rt_dep}->strftime('%H:%M') %> % if ($station->[1]{sched_dep}->epoch != $station->[1]{rt_dep}->epoch) { %= sprintf('(%+d)', ($station->[1]{rt_dep}->epoch - $station->[1]{sched_dep}->epoch ) / 60); % } % last; % } % }

% if ($journey->{extra_data}{cancelled_destination}) {

Der Halt an der Zielstation <%= $journey->{extra_data}{cancelled_destination} %> entfällt.

% } % if (@{$journey->{messages} // []} > 0 and $journey->{messages}[0]) {

    % for my $message (reverse @{$journey->{messages} // []}) { % if ($journey->{sched_departure}->epoch - $message->[0]->epoch < 1800) {
  • warning <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %>
  • % } % } % for my $message (@{$journey->{extra_data}{qos_msg} // []}) {
  • info <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %>
  • % }

% }
% my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; timeline Zuglauf % if ($journey->{extra_data}{trip_id}) { map Karte % }
% } % else {
<%= $name %> ist gerade nicht eingecheckt

% if ($journey->{arr_name}) { Zuletzt gesehen % if ($journey->{real_arrival}->epoch and ($public_level & 0x20 or ($public_level & 0x10 and is_user_authenticated()))) { %= $journey->{real_arrival}->strftime('am %d.%m.%Y') in <%= $journey->{arr_name} %> %= $journey->{real_arrival}->strftime('(Ankunft um %H:%M Uhr)') % } % else { in <%= $journey->{arr_name} %> % } % } % else { Noch keine Zugfahrten geloggt. % }

% }