From bb662144a9d47b2e8c2da081fdc6c3dfa000ef35 Mon Sep 17 00:00:00 2001 From: Rogier Neeleman Date: Wed, 4 Mar 2020 23:53:03 +0100 Subject: [PATCH] NS script added --- README.md | 5 +++++ transport/ns_vertraging.sh | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100755 transport/ns_vertraging.sh diff --git a/README.md b/README.md index f6d445f..a8dd15a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ ## scripts These are some scripts I wrote in the past. Maybe they are usefull in the future. +## Messages + * pushover: sends a message to a pushover service. + +## Transport + * ns_vertraging.sh: check if there is any delay on the dutch trains. (not working anymore) diff --git a/transport/ns_vertraging.sh b/transport/ns_vertraging.sh new file mode 100755 index 0000000..179025e --- /dev/null +++ b/transport/ns_vertraging.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +USERNAME='' +PASSWORD='' +START='Amsterdam' +EIND='Utrecht' + +curl "http://$USERNAME:$PASSWORD@webservices.ns.nl/ns-api-treinplanner?fromStation=$START\&toStation=$EIND\&departure=true"