summaryrefslogtreecommitdiff
path: root/scripts/check-efa-urls
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-05-01 13:45:26 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-05-01 13:45:26 +0200
commitacc8d78c42e9fc20a865e69c878ae054c747a8a5 (patch)
treea0bd02ec36eb7624c237b2f402d93b04344d0f71 /scripts/check-efa-urls
parent4b38590fd3cdca33a6cb542c35be6fbe246ef3de (diff)
add EFA API status check helper script
Diffstat (limited to 'scripts/check-efa-urls')
-rwxr-xr-xscripts/check-efa-urls28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/check-efa-urls b/scripts/check-efa-urls
new file mode 100755
index 0000000..e19e7b2
--- /dev/null
+++ b/scripts/check-efa-urls
@@ -0,0 +1,28 @@
+#!/usr/bin/env zsh
+
+export PERL5LIB=lib
+
+checks="DING Ulm Hbf
+SVV Salzburg Hbf
+VOR Wien Hbf
+Verbundlinie Graz Hbf
+LinzAG Linz Hbf
+VGN Nürnberg Hbf
+VRR Essen Hbf
+VRR2 Essen Hbf
+VVS Stuttgart Schwabstraße
+VVO Dresden Hbf
+VRN Mannheim Hbf
+NVBW Stuttgart Hbf (A.-Klett-Pl.)
+VMV Schwerin Hbf
+KVV Karlsruhe Hbf
+TLEM London Waterloo East
+VBL Luzern Bf
+BSVG Braunschweig Hbf"
+
+echo $checks | while read service name place; do
+ echo -n "${service} ... "
+ if bin/efa-m -s $service $name $place > /dev/null; then
+ echo OK
+ fi
+done