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

module remains in state "loading" if maxUnreachableDepartures > 0 #38

Closed
khassel opened this issue Feb 19, 2018 · 3 comments
Closed

module remains in state "loading" if maxUnreachableDepartures > 0 #38

khassel opened this issue Feb 19, 2018 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@khassel
Copy link

khassel commented Feb 19, 2018

Hi Ray,

example config:

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

  config: {
    stationID: "008012202",  // Replace with your stationID!
    stationName: "bla bla",  // 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: 1,                 // How long do you need to walk to the next Station?
    timeInFuture: 15,                 // 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: 2,      // 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,
  }
},

@raywo
Copy link
Owner

raywo commented Feb 20, 2018

Sometimes the HAFAS-API is slow. In this case the module remains in loading state.
Please try again and report it this problem persists.

@raywo raywo self-assigned this Feb 20, 2018
@raywo raywo added the bug Something isn't working label Feb 20, 2018
@raywo raywo added this to To do in PublicTransportHafas via automation Feb 20, 2018
@raywo
Copy link
Owner

raywo commented Feb 20, 2018

I've found the problem! Your setting of timeInFuture is to low. Please set it to a higher value like 60 or so. That way the module will have enough departures to ”play with“.
See also issue #39.

@raywo
Copy link
Owner

raywo commented Feb 20, 2018

Solved with PR #41.

@raywo raywo closed this as completed Feb 20, 2018
PublicTransportHafas automation moved this from To do to Done Feb 20, 2018
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
Development

No branches or pull requests

2 participants