/platform3

A NYC subway countdown clock within the comforts of your own home.

Primary LanguagePythonMIT LicenseMIT

Platform3

A NYC subway countdown clock within the comforts of your own home.

Gif of home made subway countdown clock with cool reflection over wooden table

Parts

Part My cost Link (and your cost)
32x64 LED matrix + cables $20 (matrix from Taobao, cables from Tinkersphere) Adafruit (includes cables), 16 pin cable only, 4 pin power only
Raspberry Pi $50 (3B+) Any good Pi, Zero 2 W is good but sold out
Adafruit RGB matrix bonnet $15 Adafruit or on Digikey
Power supply and wall plug $25 5V 10A Tinkersphere (doesn't include wall plug)
Shipping ~$15 for local parts -

Assembly

  1. Tools: Keyboard, Mouse, and Monitor Setup raspberry pi with latest OS and python 3.7+ (already pre-installed)
  2. Tools: Soldering Iron (optional) Assemble the components according to the Adafruit guide. Soldering optional under step 6.
  3. Continue following the Adafruit software setup until complete.

Setup

  1. Clone/download repository. Enter that directory using cd <the path of the repository you just cloned>.
  2. Obtain API token by signing up on MTA and generating a token for GTFS-rt
  3. Run make to install dependencies and generate config.py
  4. Edit config.py to paste in the API token, and set up the stops array as follows: Stop("<train>", "<stop>", <distance in minutes from station>). <train> is A, L, 7X, FS, etc. as listed in VALID_LINE_IDS, <stop> is the stop ID with direction obtained from this list, and <distance in minutes from station> is used to filter out trains that arrive too soon for you to be concerned.
  5. Run with the following commands: chmod +x platform3/platform3.py (enables execution), sudo su (elevates privilege to run low level hardware stuff), platform3/platform3.py (runs the program).

Help

This is a work in progress. Make an issue or a pull request and we'll address it when we can!