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.

    Don't know how to configure a module

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 2 Posters 1.2k 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.
    • FLOW THE NOOBF Offline
      FLOW THE NOOB
      last edited by FLOW THE NOOB

      I want to use a 3rd party module in the mirror but its description lacks in an example of how to set it up.
      It’s a module that displays Barcelona TMB metro train and bus times. https://github.com/jaumebosch/MMM-TMB

      I already followed the steps required but the module keeps “loading” and no time tables show up.

      Here is the code that I put in the “modules” array:

      {
      module: “MMM-TMB”,
      position: “bottom_right”, // This can be any of the regions.
      config: {
      appId: “e667ba4d”,
      appKey: “4cce2cd5c009e7b2368a61f89e909733”,
      busStopCode: “000921”,

                  // See below for configurable options
              }
          },
      

      It’s a bit different to the one posted by its’ creator because that one made the whole MagicMirror program crash.

      I’d appreciate any advice.

      Mykle1M 2 Replies Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @FLOW THE NOOB
        last edited by

        @FLOW-THE-NOOB

        Assuming that your appID and appKey are both valid (I suggest you verify them both), have you tried any other bus stop codes?

        I tried the the stopUrl for “stops” from the node_helper.js and this was the response:
        HTTP Status 404 - Could not find resource for relative : /1.0/ibus/stops/000921

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @FLOW THE NOOB
          last edited by

          @FLOW-THE-NOOB

          Looked into this a little further. I’m pretty sure the problem lies with the busStopCode or the module is not behaving as expected. If you empty the busStopCode, as seen below, the module starts displaying data. Perhaps this will put you on the right track to resolving your issue./

          {
            disabled: f,
          module: 'MMM-TMB',
          position: 'top_right', // This can be any of the regions.
          config: {
          appId: 'e667ba4d',
          appKey: '4cce2cd5c009e7b2368a61f89e909733',
          busStopCode: '',
                  }
              },
          

          Returns this:

          0_1573942019480_Screenshot from 2019-11-16 16-59-26.png

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 1
          • FLOW THE NOOBF Offline
            FLOW THE NOOB
            last edited by

            Thank you very much! I put only 3 digits of the bus stop code and it works perfectly.

            0_1574002324443_Captura de pantalla (28).png

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @FLOW THE NOOB
              last edited by

              @FLOW-THE-NOOB said in Don't know how to configure a module:

              Thank you very much! I put only 3 digits of the bus stop code and it works perfectly.

              Ahh, as I expected. Excellent. Glad you have it working now. :-)

              Create a working config
              How to add modules

              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