Use Raspberry Pi to power a RBG Matrix Display to show BART Arrival times.
See the movie: https://imgur.com/gallery/my5vVdl
- 3x $25 Medium 16x32 RGB LED matrix panel
- 1x $25 5V 10A switching power supply
- 1x $35 Raspberry Pi 3 - Model B+
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.
sudo apt-get update && sudo apt-get install git python3.7-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
pipenv run make -C ./rpi-rgb-led-matrix/bindings/python build-python PYTHON=$(which python3)
pipenv install '-e ./rpi-rgb-led-matrix/bindings/python' # runs setup.py install for pipenv
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