-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is National Rail integration not working? #31
Comments
Yeah, not sure if thameslink would count as part of TfL. I have found that many stations show up in the api, but do not have any realtime data. But it should not be None, that hints at a connection problem to the TfL servers. They are quite finnicky. |
I think the data is available but at different endpoint for Elizabeth, national-rail and overground https://api.tfl.gov.uk/swagger/ui/index.html?url=/swagger/docs/v1#!/StopPoint/StopPoint_ArrivalDepartures e.g. the station I was looking at : https://api.tfl.gov.uk/StopPoint/910GLBGHJN/ArrivalDepartures?lineIds=thameslink but if you try to find it in the arrivals URL: https://api.tfl.gov.uk/Line/thameslink/Arrivals/910GLBGHJN?direction=all, it returns empty |
Ah, I see! So thameslink operates more like a Bus than an underground train. I might have some time later this week to explore, but I don't think it's too difficult to fix. |
Awesome. Thanks so much :) I wish I had time otherwise I would raised an MR already. But thanks thanks so much. :) |
Sadly, said 'some amount of time' has disappeared, but was still able to take a look this morning. So I'll document what I found out for future me, or any future someone else. Buses use So it's not as simple as turning "is_bus" into checking if line is part of a new const that would start with |
I would be so grateful if someone with much more technical nouse than me could take up the challenge of making the National Rail arrivals work. I'm on a Southeastern line and getting this into Home Assistant would be a game changer for my morning routine! |
I see the sensor as "None" with occasional value as Cannot reach TFL
These are the logs:
The text was updated successfully, but these errors were encountered: