Skip to content
Use Raspberry Pi to power a RBG Matrix Display to show BART Arrival times
Python Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dockerignore
.gitignore
Dockerfile
LICENSE
Pipfile
Pipfile.lock
README.md
bart.py
base.py

README.md

BARTSign

Use Raspberry Pi to power a RBG Matrix Display to show BART Arrival times.

image

See the movie: https://imgur.com/gallery/my5vVdl

Buy The Parts

Wire the Boards

Follow these instructions by the maker of the RaspberryPi RGB Matrix Library. I've edited the defaults of base.py to assume you're using 3x 16x32 boards. Inspect base.py to change these defaults, or via flags. It's predictable.

Setup the Code

sudo apt-get update && sudo apt-get install git python3-dev python3-pillow libtiff-dev  zlib1g-dev libfreetype6-dev liblcms1-dev libwebp-dev tcl8.5-dev tk8.5-dev -y
pip install --user pipenv
git clone git@github.com:fsargent/BARTSign.git
cd BARTSign
# Setup https://github.com/hzeller/rpi-rgb-led-matrix/tree/master/bindings/python
git clone https://github.com/hzeller/rpi-rgb-led-matrix.git
sudo pipenv run make -C ./rpi-rgb-led-matrix/bindings/python build-python PYTHON=$(which python3)
sudo pipenv install '-e ./rpi-rgb-led-matrix/bindings/python' # runs setup.py install for pipenv
pipenv install dotenv
pipenv install
pipenv shell
echo "API_KEY=XXX-XXX-XXX" > .env # Get a BART API key from http://api.bart.gov/docs/overview/index.aspx
# Run it!
sudo pipenv run python3 bart.py
$ sudo pipenv run python3 bart.py -h
optional arguments:
  -h, --help            show this help message and exit
  -s STATION, --station STATION
                        Display BART station. See http://api.bart.gov/docs/overview/abbrev.aspx.
                        Default: 19th
  -p PLATFORM, --platform PLATFORM
                        Which platform? Optional 1-4
You can’t perform that action at this time.