This is a simple Python application intended to pull the next arrival times of Pittsburgh Regional Transit (formerly Pittsburgh Port Authority) buses at a particular stop, and display the number of minutes remaining until arrival on an RGB matrix. Perfect for the busy professional who needs to know exactly when they need to get out the door!!
This application is based on the great work over at Adafruit and is compatible with the HUB75-based
RGB matrices that they sell. This project uses a prebuilt version of the rgbmatrix.so
library with
additional Python support for the DrawText
method. See my pull request
to the Adafruit repo for more information.
This app was built with Nathaniel Fruchter's awesome pgh-bustime interface to the Port Authority's Bustime API. To use the API, you'll need to request an API key from their site.
This app has only been tested on a Raspberry Pi 3 with a 32x16 RGB matrix. Let me know if you get it working on another platform!
- Clone this repo into a directory of your choice, e.g.
/home/pi/src/
- Clone the repo that contains the
rgbmatrix
library into the same directory as you cloned this repo:
cd /home/pi/src
git clone https://github.com/hzeller/rpi-rgb-led-matrix
- Install the required packages:
pip3 install -r requirements.txt
- Install upstart with
sudo apt-get install upstart
- Copy the file
pgh-next-rgbus.conf.example
over to/etc/init/pgh-next-rgbus.conf
- Customize the file with your API key, stop ID, direction, etc
- Enable with
sudo start pgh-next-rgbus
- Reboot or power cycle to test -- sign should start up on boot!