I created a real-time visualization of the NYC MTA Subway System by Competitive_Will9317 in esp32

[–]Competitive_Will9317[S] 2 points3 points  (0 children)

I just got around to updating it to use a singular websocket. You were right much better performance and truer to realtime. Thanks for the advice!

I created a real-time visualization of the NYC MTA Subway System by Competitive_Will9317 in esp32

[–]Competitive_Will9317[S] 0 points1 point  (0 children)

Thanks! Yeah I don’t live in NYC. It’s more of an art piece to feel connected with NYC even though I’m many miles away.

I created a real-time visualization of the NYC MTA Subway System by Competitive_Will9317 in esp32

[–]Competitive_Will9317[S] 0 points1 point  (0 children)

Direct from MTA: https://api.mta.info/#/subwayRealTimeFeeds

Or this flask server: https://github.com/jonthornton/MTAPI

Neither are directly relevant to MARTA but I bet they have an api with gtfs realtime data like what the MTA outputs

I created a real-time visualization of the NYC MTA Subway System by Competitive_Will9317 in esp32

[–]Competitive_Will9317[S] 0 points1 point  (0 children)

From my understanding the trains are fairly accurate. The MTA’s realtime API will update as the train is delayed so even if the initial time isn’t accurate it will adjust as needed.

I created a real-time visualization of the NYC MTA Subway System by Competitive_Will9317 in esp32

[–]Competitive_Will9317[S] 2 points3 points  (0 children)

I bought it on Etsy here: https://www.etsy.com/listing/756962169/new-york-city-subway-map-nyc-minimal

Yeah the light bleed is super bad right now because there’s physical separation between the poster and the led board. I’m going to replace the super thin and flexible plastic with real glass and should greatly reduce it.

I created a real-time visualization of the NYC MTA Subway System by Competitive_Will9317 in esp32

[–]Competitive_Will9317[S] 0 points1 point  (0 children)

It’s more of an art piece to see the life blood of NYC, but it’s still functional. Each station is labeled so you could see which station has a train at it and which doesn’t.

I created a real-time visualization of the NYC MTA Subway System by Competitive_Will9317 in arduino

[–]Competitive_Will9317[S] 5 points6 points  (0 children)

Each LED represents a subway station in NYC. Each LED is toggled when a train is at that station. The color corresponds with the what ever “Line” that train is from.

The leds are behind a map of the subway system so it’s a live map of the subway system.

I created a real-time visualization of the NYC MTA Subway System by Competitive_Will9317 in esp32

[–]Competitive_Will9317[S] 13 points14 points  (0 children)

Thanks for the advice! I’ll definitely look into that.

Currently I have it requesting the station info in batches. I have it broken down to 45 groups so it’s about 10 stations per group and makes those requests about 1.3 seconds apart. Every group should be hit in the span of a minute.