Last active
December 14, 2021 03:57
-
-
Save kilasuit/9f884401a1edeef90b9695fe0b9f2cbd to your computer and use it in GitHub Desktop.
Simple get next train function
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
function Get-NextTrain { | |
$from = "MAN" | |
$to = "MAC" | |
$date = Get-date -Format ddMMyy | |
$time = Get-date -Format HHmm | |
$url = "http://ojp.nationalrail.co.uk/service/timesandfares/$from/$to/$date/$time/dep/" | |
start iexplore $url | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment