A NYC subway countdown clock within the comforts of your own home.
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 | - |
- Tools: Keyboard, Mouse, and Monitor Setup raspberry pi with latest OS and python 3.7+ (already pre-installed)
- Tools: Soldering Iron (optional) Assemble the components according to the Adafruit guide. Soldering optional under step 6.
- Continue following the Adafruit software setup until complete.
- Clone/download repository. Enter that directory using
cd <the path of the repository you just cloned>
. - Obtain API token by signing up on MTA and generating a token for GTFS-rt
- Run
make
to install dependencies and generateconfig.py
- Edit
config.py
to paste in the API token, and set up thestops
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. - 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).
This is a work in progress. Make an issue or a pull request and we'll address it when we can!