Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 910 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 910 Bytes

Train delay logger

A simple Rust command-line app for logging delayed trains (> 15 minutes) between two stations

Usage

$ SERVICE_USERNAME= SERVICE_PASSWORD= train-delay-logger DEP_CODE ARR_CODE START_HOUR END_HOUR YYYY-MM-DD

# Example
# Trains between London Euston and Liverpool Lime Street, from 1pm to 10pm on 1st July 2018
$ SERVICE_USERNAME= SERVICE_PASSWORD= train-delay-logger EUS LIV 13 22 2018-07-01

See the API Authentication section on how to get values for the SERVICE_USERNAME and SERVICE_PASSWORD environment variables.

API Authentication

You must provide the SERVICE_USERNAME and SERVICE_PASSWORD environment variables in order to gain access to the Open Rail Data Historical Service Performance API.

You can register for an account to get these details via this URL: https://datafeeds.nationalrail.co.uk/#/