Train movements website powered by RealTimeTrains API
Ruby HTML CSS JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
csv
lib
public
spec
tmp
views
.gitignore
.ruby-version
Gemfile
Gemfile.lock
Procfile
README.txt
Rakefile
archive.rb
config.ru
findinteresting.rb
load.rb
pairings.rb
pry.rb

README.txt

# Leeds Trains

This web application started life at Leeds Hack 2015, and summarises what services are running through a given train station.

You can provide any CRS code that network rail knows about.

It caches data locally, so you may find it doesn't pick up changes to services during the day.

# Usage

To run this locally you will need to set the following environment variables

* RTT_USER
* RTT_PASSWORD

both of these are available from realtimetrains.co.uk, ideally added to `.env` file.

if you do not have an api key, then you can generate some minimal fake data for Leeds for the current day using ./bin/generate_dev_data.rb

# Contributing

You'll need ruby 2.2.10.

Install dependencies

    bundle install

Run the app

    heroku local

# Thanks

* Leeds Hack for giving me the time to work on this
* Realtime Trains for making the data available
* Glen for inspiring me to just use local files instead of MongoDB
* Those of you who've pointed out the bugs, you know who you are
* data.gov.uk for location data https://data.gov.uk/dataset/naptan

# Contact

@AliceFromOnline via Twitter