-
Notifications
You must be signed in to change notification settings - Fork 7
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 trips after midnight #36
Comments
I will have a look, did you tick the box 'include tomorrow'? |
Yes, 'include tomorrow' is ticked. Have tried it without having it ticked as well but it's the same result |
Fixed in 0.3.9... I used the 'offset' for testing as I will not wait for almost midgnight :) |
The new version seems to have fixed the problem with the date being wrong, thanks! Although it still skips the trips after midnight when the entity is updated after midnight. E.g. First trip on any given service day departs at 05:00:00 and the last trip is the next day at 02:00:00 (or 26:00:00 as in the stop_times.txt). When the entity updates after midnight it will show the first trip on the next service day starting on that date as it's State, which means that all trips from the previous service day between 00:00:00 and 02:00:00 will be skipped. I'm not sure I explain it well and note this isn't a major issue for me as I basically never use transit after midnight. |
Hmm, the thing is... I am not going to stay up after midnight :) and no way to change the time of my machine wihtout affecting other things. The only way to reproduce this I see right now is to change the code to fake the time and date...that is not a little task. And I need a reproduction to see what data comes from where, there is soo much code to deal with dates/tomorrow/today, midnight...and this is even without effect of the data-source (sqlite). But what you describe sounds logical (I mean: I understand why it does not take 'yesterday'). But I also donot understand why the dataset has slots with both start/end of tomorrow in it, why would this not be part ot a trip 'tomorrow'....no clue. |
Describe the bug
When the next departure time is after midnight the date is still the same as today in the entity state. In the attribute "Next departures" it holds the correct date (tomorrow) but the entity state is wrong. When the entity updates after midnight it starts looking at the next service day which starts at around 05:00:00 meaning the departures in the "Next departures" attribute below will be skipped completely.
Looking at the data in the zip file the provider seems to set the time higher than 24:00:00 which seems to be within spec according to the GTFS website but might not be common practice by other providers.
Example from stop_times inside zip file:
Steps/data to reproduce the behavior, e.g.
Release used
gtfs2 release 0.3.8, HA type: HAOS
Additional
Info from entity taken at March 5, 2024 at 23:57
The text was updated successfully, but these errors were encountered: