Coder Social home page Coder Social logo

Comments (6)

morosanmihail avatar morosanmihail commented on September 13, 2024 2

Honestly, uncertain. All the lines that show up are the ones their API gives, then all the stations are the ones mapped to the given lines. See const.py for the API calls used.

I probably won't be able to investigate this further. I think it's due to it not being TfL and the stations showing up just as a courtesy. But if you do find an issue in my approach, do give a shout and I'll try to remedy!

from ha-londontfl.

morosanmihail avatar morosanmihail commented on September 13, 2024 1

Thank you! I have a theory (that most non-TfL trains don't actually show up in the TfL API, but they still advertise the lines / stations), but I will try to confirm or deny now.

from ha-londontfl.

morosanmihail avatar morosanmihail commented on September 13, 2024 1

Yep, seems like National Rail does not share all its times with the API yet, and Southeastern is one of them.
I remember seeing that there's an integration (maybe even baked in) for trains explicitly, so might be worth seeing if that solves that half of the problem!

from ha-londontfl.

ReX1983 avatar ReX1983 commented on September 13, 2024

What a pity - your integration works so well with DLR!

The official integration limits the queries to once every 5 minutes. It seems pretty limited. How often is the polling in yours?

There is another non-official integration (https://github.com/megakid/ha_realtime_trains_api), it is based on https://api.rtt.io/. Which API did you use for yours?

from ha-londontfl.

morosanmihail avatar morosanmihail commented on September 13, 2024

I've done some sneakiness to limit polling as well. It gets as much data as possible and only updates when it's close to running out of stuff. Even though the API itself (api.tfl.gov.uk) doesn't seem to be rate limiting, I wanted to have the least amount of footprint possible.

from ha-londontfl.

ReX1983 avatar ReX1983 commented on September 13, 2024

Is there any chance that Southeastern labels stations differently and we are not getting data because we don't use the right address? Or maybe the line itself is called differently (now that has changed ownership)?

from ha-londontfl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.