In a world of sensory overload, sometimes it’s nice to get the information you need without a bunch of clutter. [Savage] has created an attractive and minimalist system to display the current wait times for specific trains in his San Francisco neighborhood.
It’s basically a Spark Core and a 60 LED-per-meter strip of WS2812Bs. A 1000µF cap filters the power coming in from a switching adapter and a resistor limits the level-shifted logic going to the LEDs. Eight barriers made from card stock keep the light zones from bleeding together. The sides of the square canvas panel indicate cardinal directions and are oriented to [Savage]’s southern-facing house.
The server gets prediction data every 30 seconds using the RESTbus JSON API. [Savage] added in a bit of time for walking down the stairs, putting shoes on, and walking to each stop. TrainLight receives these times over WiFi and lights the LEDs accordingly. If a section isn’t lit at all, the wait time for that line is greater than 10 minutes. Dark green means you have 5-10 minutes to get there, and pale green means 2-5 minutes. If the LEDs are yellow, you’d better put on your running shoes.
This is a fairly simple build with a focus on subtlety. Even before guests in his house understand what they’re looking at, [Savage]’s TrainLight makes for an interesting conversational piece of blinkenlights and doubles as illumination for the stairs. There’s a slightly sped-up demo after the break.
Want to make your own? [Savage] has a tutorial page and his code is up on the gits. Blinky lights are also good for telling you whether the trains are running at all.
For those people in the Twin Cities (Minneapolis, St. Paul) area, there is a Metro Light Rail API for train ‘realtime’ locations. Accuracy seems to be about +/-30 seconds. Each entry in the JSON data is a train.
http://svc.metrotransit.org/NexTrip/VehicleLocations/902?format=json
// 901=Blue Line
// 902=Green Line
// 904=Red Line
For users in Boston, the MBTA has a realtime feed in Google Protobuf format:
http://realtime.mbta.com/Portal/Home/Documents
I’m trying to get a feed to display on my partial Red line map:
https://goo.gl/photos/XSccQjwnucjLu1Uy6
For people in Toronto there is an app to measure wait time for the Bus, it’s called a calendar.
I wish they followed the calendar, but people seem to walk in front of trains and hit them with cars. Hard to schedule that. I blame it on walking while texting.
I know a preacher who times his sermons with a calendar.
B^)
Translink here in Queensland provides full GTFS-realtime data for all transport vehicles (bus, train, ferry, tram) backed by GPS tracking of every vehicle. One of these days I will find the time to write an app for my phone that pulls the GTFS-realtime data and display the bus I am currently on and the upcoming stops so I could see when the stop I need is comming up :)
Looks nice, I wish that wire would go away. Probably hide it behind the wall.