Read the statement by Michael Teeuw here.
Converting an old JS file into a module
-
@ooom416354
Could you please tell me your sStation code? I just did some testing with the JSON and noticed I don’t get up-to-date data.
When I run this I always get data from this morning: https://traintime.lirr.org/api/Departure?loc=CLP&api_key=XXXXXXXXXXXXXXXXXI need to take a closer look into this later.
-
@yawns yes that’s the local station to my house, CLP. The morning ride is CLP to NYK then reverse in the afternoon. It should show the closest train departures and if there’s a delay so this morning would make sense (there were no delays today that I know of). So when I test I would just set a delay of like 8 minutes to see if anything showed up.
-
@ooom416354
Do you know of a list of all stations with their LOC code for api requests? They have a list of stations, but I can’t find the codes -
@yawns there used to be a ton of documentation on the API which for some reason is now offline. I found a list that was downloaded, here is the link
-
@ooom416354
Exactly what I was looking for. Thanks alot! -
@yawns no problem, I am still trying to find working link where this can be pulled, although there won’t be any new stations anytime soon.
-
@yawns Here’s all of the feeds, the site is down but I have the links:
Full Station Listing with details:
https://traintime.lirr.org/api/Stations-AllSchedules based on Starting Station input (startsta=) and Ending Station input (endsta=) along with date/time (can be future dated)
Actual Train Schedules closest to the current time (passing in the 3 letter station code after loc=). This is different from the other link that I used for the JS file as it doesn’t show the ETA of the train.
-
@yawns Hey I saw on git, MMM-MTA, not sure if that is all working or not though. Still working on configuring some stuff on my end but wanted to see if that was usable?
-
@ooom416354
Hi, right that is the module I was working on. Over the last days I was completely busy doing cable stuff in my house and the weekend was blocked with dog training annual tax declaration.
I try to complete it today or tomorrow. -
@yawns that’s amazing, thanks! I was going to start using it to try to teach myself by comparing the two. Thank you again!