Skip to content

Instantly share code, notes, and snippets.

@nv1t
Created December 18, 2019 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nv1t/9d95a8ab33352c072f82479829b4a91e to your computer and use it in GitHub Desktop.
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.
# 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