Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

wheresalice/raretrains

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
csv
 
 
lib
 
 
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
# 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

About

Train movements website powered by RealTimeTrains API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published