Skip to content

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

Notifications You must be signed in to change notification settings

chrishutchinson/train-delay-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/#/

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages