Created
December 18, 2019 22:24
-
-
Save nv1t/9d95a8ab33352c072f82479829b4a91e to your computer and use it in GitHub Desktop.
function liest die naechsten Abfahrten an einer Station von der DVB in Dresden aus.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: dvb <station> | |
# Default for <station> is "Hauptbahnhof" | |
function dvb() { | |
station=${@:-Hauptbahnhof} | |
http --body "widgets.vvo-online.de/abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=${station}" | jq -r '.[] | [.[2],.[0],.[1]] | @tsv' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment