Code Monkey home page Code Monkey logo

Comments (3)

PixelPenguin145 avatar PixelPenguin145 commented on May 23, 2024

Hey, i was just using your library for a train display.
But I get no delay data of the trains. I tried departures and arrivals, but its always the scheduled time coming back.

Is this a bug or am I using it wrong?

from vvspy.

zaanposni avatar zaanposni commented on May 23, 2024

Hi @PixelPenguin145

thanks for your bug report.

I also receive an above-average number of trains that are on time.
Very special for german trains, isnt it :)

When trying to access trains by the SSB (U-Bahn) or other companies I actually got realtime data and delays too, so I guess there is something wrong with the Deutsche Bahn currently? Furthermore, I found that if you are looking at https://vvs.de there are no delays as well...

My guess is that this is a temporary issue and certainly no internal issue of this library.

Feel free to try the following stations (this is where I received accurate delay data)

  • de:08111:6118 "Hauptbahnhof Tief"
  • 5000355 "Wallgraben"

The properties you want to look out for are (for departures):

  • departure.delay (the difference in minutes)
  • departure.datetime (the planned departing time)
  • departure.real_datetime (the actual departing time)

By the way, keep in mind that there are certain trains that never have real time data as the Deutsche Bahn does not provide it (old trains without localization features or similar).

from vvspy.

PixelPenguin145 avatar PixelPenguin145 commented on May 23, 2024

Hey thanks for the quick answer.

I also noticed that its working, just took a little bit of time to play around ;)

from vvspy.

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.