Read the statement by Michael Teeuw here.
MMM-PublicTransportHafas direction parameter not working anymore
-
Re: MMM-PublicTransportHafas
I configured the module to only show the departures to a certain direction. But it is showing all departures.Here is my part out of the config.js file:
{ module: "MMM-PublicTransportHafas", position: "bottom_left", config: { // Departures options stationID: "8005976", // Replace with your stationID! stationName: "Unterasbach", // Replace with your station name! direction: "682669", //"8004486", // Show only departures heading to this station. (A station ID.) excludedTransportationTypes: ["bus"], // Which transportation types should not be shown on the mirror? (comma-separated list of types) possible values: > timeToStation: 10, // How long do you need to walk to the next Station? timeInFuture: 70, // Look and Feel displayLastUpdate: true, // Display the last time of module update. maxUnreachableDepartures: 0, // 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)? } }
Any hints from your side?
Thx -
I personally do not use this, but are you sure about
direction: “682669”
?
Seems a bit off. -
I tested this and indeed it does not seem to work (anymore).
Fordirection
I used the station Id for the station adjacent to my station.
I will raise an issue for this. -
yes “682669” and also “8004486” are working. Both IDs are for Nuremberg HBF. I tested both to exclude errors with the station ID.
Okay, thx that you raised an issue… thought it was a problem with my installation.
-
@blinkybob
I’ve been running into some challenges with the direction settings too. Please tryignoreRelatedStations: true
parameter. That helped me in the first module. Unfortunately, it didn’t help in the second one for the opposite direction.