-
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
Configuration option 'direction' does not work anymore (with db profile) #193
Comments
+1 Same here... |
Should be fixed now with release 3.0.2 🙂 Please confirm. |
Recently, I tested the workaround provided by @KristjanESPERANTO , but unfortunately, it did not perform as expected. While it successfully filters the departures to show only those trains that have the specified destination as their final stop, it incorrectly excludes trains that pass through the destination at any point in their route. I kindly request that this filtering functionality be further improved to ensure that all relevant departures are displayed accurately. It would greatly enhance the usability of the system for passengers who are looking to travel to specific destinations. Thank you for your attention to this matter. I appreciate your efforts in making our public transport experience better! Gregor |
@ggruening At the moment I can hardly imagine how the workaround creates this effect. The workaround filters based on information about the direction, stops on the route are not treated at all. Didn't this behaviour already occur with 3.0.1 or 3.0.0? @evroom How is the new version working for you? |
@KristjanESPERANTO I'm not quite sure which version I last used. I can find that out later today or tomorrow, as I'm currently not at home. In the older versions, the effect of 'direction' has been as I described for years. It seems reasonable to me: as a commuter, all trains that reach a specific destination are helpful. The route is actually irrelevant; what matters is that the destination appears at some point during the journey. Perhaps the 'direction' parameter has always been intended differently, but that is indeed what helps me, at least. I will gladly provide my configuration later today or tomorrow, but maybe my use case will already help: 'show all departures from Münster(Westf)Hbf to Dortmund(Hbf)' (all in Germany from Deutsche Bahn). Thank you for considering this! Best regards! |
I had the same problem as @evroom with the direction I updated the module to 3.0.2 Here is my config: {
module: "MMM-PublicTransportHafas",
position: "bottom_left",
config: {
// Departures options
stationID: "8005976", // Replace with your stationID!
stationName: "Unterasbach", // Replace with your station name!
direction: "8004486", // Show only departures heading to this station. (A station ID.)
excludedTransportationTypes: [], // Which transportation types should not be shown on the mirror? (comma-separated list of types) possible values: "tram", "bus">
ignoredLines: [], // Which lines should be ignored? (comma-separated list of line names)
timeToStation: 9, // How long do you need to walk to the next Station?
timeInFuture: 90,
// Look and Feel
displayLastUpdate: true, // Display the last time of module update.
maxUnreachableDepartures: 2, // How many unreachable departures should be shown?
maxReachableDepartures: 7, // How many reachable departures should be shown?
showColoredLineSymbols: true, // Want colored line symbols?
customLineStyles: "", // Prefix for the name of the custom css file. ex: Leipzig-lines.css (case sensitive)
showOnlyLineNumbers: false, // Display only the line number instead of the complete name, i. e. "11" instead of "STR 11"
showTableHeadersAsSymbols: true, // Table Headers as symbols or text?
useColorForRealtimeInfo: true // Want colored real time information (timeToStation, early)?
}
} |
It works, but it is kind of useless for me. Part of my config:
So, it only works for directions that are on the list when run with For me it is not useful as I mainly travel with the S2 to Nürnberg Hbf and sometimes to Schwaig. |
Perhaps departures in a specific |
Without direction the module shows me all trains departing from the starting station. S-Bahn (S) and Regional Express (RE) trains. As soon as I enter a destination station in “direction” only the S-Bahn trains are displayed. And the Regional Express is missing. |
I probably won't have time to look at the problem until next week. |
Okay, I've had a look. Let me elaborate a little: The To make the Unfortunately, the So I see the following options for you:
Even if it is an upstream issue, I leave the issue open so that others can see that the problem is known, but needs to be fixed elsewhere. |
Thanks for looking into it and the extensive comment. Thx! |
For clarification: It's not that I chose to not implement it in |
@KristjanESPERANTO https://github.com/public-transport/db-vendo-client/blob/main/docs/journeys.md Instead of a |
That's actually not a bad idea, if you additionally set |
@traines-source: Thanks for the clarification and huge thanks for @ggruening: Yes, I also think that the idea is good and that it could work. Do you feel like trying to implement this and creating a PR? |
@KristjanESPERANTO @traines-source |
Well we all had to learn it (by doing) at some point :) Btw, this would also show cancelled trips, which I think is helpful (if you're exposing the remarks/cancelled flag, haven't checked), while with the |
MMM-PublicTransportHafas
release v3.0.1
(git pull && npm ci where used to get the latest code)
The configuration option 'direction' does not work (anymore).
When setting the parameter with the station ID of the station adjacent to the stationID, it still shows the other directions too.
Configuration used:
It can be that this is the result of the necessary change from the 'db' profile to the db-vendo-client'.
The text was updated successfully, but these errors were encountered: