Python
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.
Adafruit_7Segment.py
Adafruit_I2C.py
Adafruit_LEDBackpack.py
README.md
ballston-simulation.py
ballston.py
full-light-0123-refresh.py
full-light-8888.py

README.md

Ballston Metro Board ("Raspberry PID")

This script is meant to be run on a Raspberry Pi. It will hit the API of WMATA (Washington, DC's Metro) to access real-time train arrival data for Ballston station. Trains will be sorted into two groups: those going toward my office (Westbound Orange) and those going downtown (Eastbound Orange or Silver). The train times will be displayed on 7-segment LEDs connected to the Pi.

Autostart

Add this to the end of /etc/rc.local (but before the exit 0 command) to have the Raspberry Pi automatically run the script when it boots up.

python /home/pi/ballston-metro-board/ballston.py &

Resources

Blog Post and presentation slides from June 2015.