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

Product type output twice #33

Closed
djsunrise19 opened this issue Feb 19, 2018 · 7 comments
Closed

Product type output twice #33

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

Comments

@djsunrise19
Copy link

Hi,

the product type seems to be there twice:
bildschirmfoto 2018-02-19 um 19 29 00

stationID: "008000728"
direction: "008000105"

Best regards,
Maurice

@raywo raywo added this to To do in PublicTransportHafas via automation Feb 19, 2018
@raywo raywo added the bug Something isn't working label Feb 19, 2018
@raywo raywo self-assigned this Feb 19, 2018
@raywo raywo moved this from To do to In progress in PublicTransportHafas Feb 19, 2018
raywo added a commit that referenced this issue Feb 19, 2018
@raywo
Copy link
Owner

raywo commented Feb 19, 2018

Fixed with pr #35

@raywo raywo closed this as completed Feb 19, 2018
PublicTransportHafas automation moved this from In progress to Done Feb 19, 2018
@djsunrise19
Copy link
Author

djsunrise19 commented Feb 19, 2018

Hi!

Now it stucks on "loading". Here is my config:

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

  config: {
    stationID: "008000728",                   // Replace with your stationID!
    stationName: "Bad Nauheim (Richtung Frankfurt)",   // Replace with your station name!

    direction: "008000105",                    // Show only departures heading to this station. (A station ID.)
    ignoredLines: [],                 // Which lines should be ignored? (comma-separated list of line names)
    updatesEvery: 60,
    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: 15,                // How long do you need to walk to the next Station?
    timeInFuture: 90,                 // 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: 4,        // How many reachable departures should be shown?
    //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"
  }
}, 

@raywo
Copy link
Owner

raywo commented Feb 19, 2018

Please open the dev tools of your browser and have a look in the console. Is there any error listed?

It works for me. Did you execute git pull && nom install to update the module?

@djsunrise19
Copy link
Author

Looks like an temporary issue. Now, it works! Thank you!

@djsunrise19
Copy link
Author

I don't want to open another issue, but I have a short question. After the newest update, the departures doesn't seem to be correct. I display departures for the next 90min. In 60min there will be a train. But the module says: No connections, actually.

At the bottom, there is the MMM-PublicTransportDB module with the same settings.
bildschirmfoto 2018-02-19 um 22 28 50

@raywo
Copy link
Owner

raywo commented Feb 19, 2018

I think that has to do with your direction. If you leave direction blank there are departures. Maybe you should use another ID. It doesn’t need to be the final station. Just a station on the route is sufficient.

@djsunrise19
Copy link
Author

You are right! Frankfurt Main has two ID's for HBF. I took the other one, now it works. I don't know, why it worked before (with the other id). Thank you again and good night :-D.

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