This is a side project I made to display a representation of the Link light rail transit system on a neopixel strip controlled by a raspberry pi. It updates every 15 seconds with live train locations as they move through the system.
Stations are red leds and trains are green leds. Trains that are stopped at stations are yellow.
Here's a video of the finished project: https://photos.app.goo.gl/NzShjevUZVjxWGqQ6
python3 train_lights.py <your one bus away api key>
Neopixels are plugged into GPIO pin 18 on a raspberrypi 3
Here are instructions for how to get an API key to get the live location of vehicles.
https://www.soundtransit.org/help-contacts/business-information/open-transit-data-otd