MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Problems with KristjanESPERANTO/MMM-PublicTransportHafas

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 2 Posters 994 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      Klinge
      last edited by Klinge

      Hi,

      I am currently having problems with the configuration of KristjanESPERANTO/MMM-PublicTransportHafas.

      My config looks like this

                      {
                                module: "MMM-PublicTransportHafas",
                                position: "top_left",
      
                                config: {
                                          stationID: "8005662",                   // Replace with your stationID!
                                          stationName: "XXXXX",   // 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: ["bus"],  // 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: 10,
                                          timeInFuture: 120,                 // Show departures for the next *timeInFuture* minutes.
                                          showColoredLineSymbols: false,     // 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"
                                        }
                      },
      
      

      This shows me all trains departing from the starting station. S-Bahn (S) and Regional Express (RE) trains.

      However, as soon as I enter a destination station in “direction” as follows, only the S-Bahn trains are displayed. And the Regional Express is missing. Although the destination station is Hannover Hbf, where Regional Express trains also arrive.

                      {
                                module: "MMM-PublicTransportHafas",
                                position: "top_left",
      
                                config: {
                                          stationID: "8005662",                   // Replace with your stationID!
                                          stationName: "XXXXX",   // Replace with your station name!
                                          direction: "8000152",                    // Show only departures heading to this station. (A station ID.)
                                          ignoredLines: [],                 // Which lines should be ignored? (comma-separated list of line names)
                                          excludedTransportationTypes: ["bus"],  // 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: 10,
                                          timeInFuture: 120,                 // Show departures for the next *timeInFuture* minutes.
                                          showColoredLineSymbols: false,     // 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"
                                        }
                      },
      
      

      What can I do, that the Regional Express (RE) will be shown too when I enter a direction?

      Thank you in advance.

      Kind regards
      Klinge

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Klinge
        last edited by

        @Klinge did you look at the repo issues?? or create one?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          Klinge @sdetweil
          last edited by

          @sdetweil Sorry, but I don´t know what you mean. So I would say, no

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @Klinge
            last edited by

            @Klinge every module that you git clone install has a repository

            github/gitlab

            anyhow, the creator of the module would look at the issues page for reported problems

            https://github.com/KristjanESPERANTO/MMM-PublicTransportHafas

            Screenshot at 2025-01-16 08-57-33.png

            and that page shows
            Screenshot at 2025-01-16 08-58-16.png

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Reply Quote 1
            • K Offline
              Klinge @sdetweil
              last edited by

              @sdetweil Ok, there is an issue regarding direction. I commented it and now I will be patient.

              Thank you for you advice

              S 1 Reply Last reply Reply Quote 0
              • K Klinge has marked this topic as solved on
              • S Do not disturb
                sdetweil @Klinge
                last edited by

                @Klinge also, if you don’t know where an modules github page is (or don’t remember as we all do)

                in the module folder do

                git remote -v
                

                and it will give you the url where this module came from

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy