Skip to content
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

missing delay data #62

Closed
PixelPenguin145 opened this issue Mar 21, 2023 · 3 comments
Closed

missing delay data #62

PixelPenguin145 opened this issue Mar 21, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@PixelPenguin145
Copy link

Describe the bug
A clear and concise description of what the bug is.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Code fragment
Let us see the important code sample that fails.

Additional context
Add any other context about the problem here.

@PixelPenguin145 PixelPenguin145 added the bug Something isn't working label Mar 21, 2023
@PixelPenguin145
Copy link
Author

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?

@PixelPenguin145 PixelPenguin145 changed the title [BUG] missing delay data Mar 21, 2023
@zaanposni
Copy link
Owner

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).

@PixelPenguin145
Copy link
Author

Hey thanks for the quick answer.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants