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. This information is pulled through the one bus away api.
Stations are red leds and trains are green leds. Trains that are stopped at stations are yellow. Capitol hill, the station that is near my home is blue. (I think of it as a "you are here" pin)
Lynnwood station is at the top and Angle Lake is at the bottom. Northbound trains are on the right side, while southbound trains are on the left.
python3 train_lights.py <your one bus away api key>
Neopixels are plugged into GPIO pin 18 on a raspberrypi 3
I cut the strip in half and taped the two halves together next to each other and soldered them back together at the top.
Here are instructions for how to get an API key for the live location of transit vehicles.
https://www.soundtransit.org/help-contacts/business-information/open-transit-data-otd