Skip to content

craig-mcmahon/RailDisplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RailDisplay

Library for displaying UK train times

This library is designed for displaying UK train times on a raspberry pi with a Display-O-Tron 3000

Prerequisite

Do NOT run any of the below commands if you are not sure what they do, especially piping curl requests to bash. These are the instructions provided on the external projects sites.

Install Python 2 (The dot3k lib is not compatible with Python 3 at the time of writing)

Install pip

wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

Install the nre-darwin package

# May be needed
sudo easy_install -U setuptools
sudo pip install nre-darwin-py

Install the dot3k lib (If using Display-O-Tron)

curl get.pimoroni.com/dot3k | bash

Get your API Key

You can get an API Key from the NRE Developer Site

Examples

Please see example.py for an example of usage

Other

Data powered by National Rail Enquiries