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

Cancelled connections are displayed as in time #55

Closed
khassel opened this issue Mar 28, 2018 · 3 comments
Closed

Cancelled connections are displayed as in time #55

khassel opened this issue Mar 28, 2018 · 3 comments

Comments

@khassel
Copy link

khassel commented Mar 28, 2018

Hi,
today no U-Trains are driving in Frankfurt/Main and I'm a little confused that my mirror is displaying them as in time:
grafik
In reality there is no U8 and no U9 driving.
My setup:

		{
			module: "MMM-PublicTransportHafas",
			position: "top_right",

			config: {
				stationID: "000102978",             // Replace with your stationID!
				stationName: "Uni Campus Riedberg", // Replace with your station name!

				direction: "",                    // Show only departures heading to this station. (A station ID.)
				ignoredLines: [],                 // Which lines should be ignored? (comma-separated list of line names)
				excludedTransportationTypes: [],  // Which transportation types should not be shown on the mirror? (comma-separated list of types) possible values: StN for tram, BuN for bus, s for suburban
				timeToStation: 3,                 // How long do you need to walk to the next Station?
				timeInFuture: 60,                 // Show departures for the next *timeInFuture* minutes.

				showColoredLineSymbols: true,     // Want colored line symbols?
				useColorForRealtimeInfo: true,    // Want colored real time information (timeToStation, early)?
				showTableHeadersAsSymbols: true,  // Table Headers as symbols or text?
				maxUnreachableDepartures: 1,      // How many unreachable departures should be shown?
				maxReachableDepartures: 7,        // How many reachable departures should be shown?
				customLineStyles: "leipzig",      // 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"

				updatesEvery: 60,
				marqueeLongDirections: false,
			}
		},

Any ideas?
Thanks,
Karsten.

@derhuerst
Copy link

The underlying library hafas-client has recently got support for cancelled departures. This project would have to upgrade.

But independently of that, the API endpoint being queried might give wrong data.

@khassel
Copy link
Author

khassel commented Apr 13, 2018

today again no U-Trains are driving in Frankfurt but now it works as expected: Only bus departures are visible, no U-Train departures ... This module hasn't changed, so maybe this was fixed in the hafas-client?

@khassel khassel closed this as completed Apr 13, 2018
@derhuerst
Copy link

As I said, hafas-client now exposes the information from the API that a departure has been cancelled. You need to update for that though.

What could also be the case: The API doesn't return the departure in the first place, not even as canceled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants