summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-01-02 13:25:08 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-01-02 13:25:16 +0100
commit2e6079b836075221e462cb44c11a3ec23707f462 (patch)
tree892a9326d57c5ffb5ad98c4589d01ee78441a0db /bin
parent59bf31e9c5224ab82f10e2bf787fdf2d8272387e (diff)
Add generic train data accessors
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-wagenreihung2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/db-wagenreihung b/bin/db-wagenreihung
index 2594478..7a17c27 100755
--- a/bin/db-wagenreihung
+++ b/bin/db-wagenreihung
@@ -70,6 +70,8 @@ my $wr = Travel::Status::DE::DBWagenreihung->new(
train_number => $train_number,
);
+printf("%s %s in %s Gleis %s\n", $wr->train_type, $wr->train_no, $wr->station_name, $wr->platform);
+
for my $section ( $wr->sections ) {
my $section_length = $section->length_percent;
my $spacing_left = int( ( $section_length - 2 ) / 2 ) - 1;