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.

    MMM-PublicTransportHafas direction parameter not working anymore

    Scheduled Pinned Locked Moved Transport
    5 Posts 3 Posters 365 Views 3 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.
    • B Offline
      blinkybob
      last edited by

      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

      evroomE 2 Replies Last reply Reply Quote 0
      • evroomE Offline
        evroom @blinkybob
        last edited by

        @blinkybob

        I personally do not use this, but are you sure about
        direction: “682669”
        ?
        Seems a bit off.

        MagicMirror version: 2.30.0
        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        Test environment:
        MagicMirror version: v2.30.0
        Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
        Raspbian GNU/Linux 12 (bookworm)

        B 1 Reply Last reply Reply Quote 0
        • evroomE Offline
          evroom @blinkybob
          last edited by

          @blinkybob

          I tested this and indeed it does not seem to work (anymore).
          For directionI used the station Id for the station adjacent to my station.
          I will raise an issue for this.

          MagicMirror version: 2.30.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.30.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          1 Reply Last reply Reply Quote 1
          • B Offline
            blinkybob @evroom
            last edited by

            @evroom

            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.

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              markus_k @blinkybob
              last edited by

              @blinkybob
              I’ve been running into some challenges with the direction settings too. Please try ignoreRelatedStations: true parameter. That helped me in the first module. Unfortunately, it didn’t help in the second one for the opposite direction.

              1 Reply Last reply Reply Quote 0
              • 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