Skip to content

Display arrival times for Pittsburgh Port Authority buses on an RGB matrix

License

Notifications You must be signed in to change notification settings

ulfmagnetics/pgh-next-rgbus

Repository files navigation

pgh-next-rgbus

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!!

An image of a working installation of pgh-next-rgbus, running in a lovely wooden box with an LED RGB display that says "74 20 min"

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!

Installation

  • 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

Start on boot

  1. Install upstart with sudo apt-get install upstart
  2. Copy the file pgh-next-rgbus.conf.example over to /etc/init/pgh-next-rgbus.conf
  3. Customize the file with your API key, stop ID, direction, etc
  4. Enable with sudo start pgh-next-rgbus
  5. Reboot or power cycle to test -- sign should start up on boot!

About

Display arrival times for Pittsburgh Port Authority buses on an RGB matrix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages