MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    Can you have two instances of one module running independently from each other?

    General Discussion
    3
    5
    739
    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.
    • F
      FruityBebbles last edited by FruityBebbles

      For context, I am using MMM-Carousel in “slides” mode.
      I have one slide dedicated to the NFL, so I use the default newsfeed module to stream an rss feed of ESPN to that slide
      BUT
      I have another slide where it is dedicated to traffic maps/reports/travel times.

      I was wondering if it were possible to use one module, twice?
      Like, I want to use the newsfeed module, again, to broadcast traffic reports from my local news station (and not have NFL stats popping up lol.)
      Is there anyway to ID two instances of the same module as something like,

      {
      module: "newsfeed1"
      },
      {
      module: "newsfeed2"
      }, 
      etc
      

      ?? I know there is a MMM-RSS-FEED but that doesn’t run as smoothly as the default newsfeed module and I would really like to use the newsfeed to broadcast both the ESPN stuff and the traffic reports…
      Is what Im thinking possible? annd if so, how can I get it done?

      S 1 Reply Last reply Reply Quote 0
      • qu1que
        qu1que Project Sponsor last edited by

        Take a look at this post. Maybe it can help you:

        https://forum.magicmirror.builders/topic/10982/how-to-run-two-instances-of-one-module

        1 Reply Last reply Reply Quote 0
        • S
          sdetweil @FruityBebbles last edited by sdetweil

          @FruityBebbles if the developer codes for mutliple instances, then yes, like u coded

          if not, then like the other link, make copies of the module, change its name

          Sam

          Create a working config
          How to add modules

          F 1 Reply Last reply Reply Quote 0
          • F
            FruityBebbles @sdetweil last edited by

            @sdetweil @qu1que oh, thanks both of you… I didn’t realize it was as easy as that 🙂
            Now, to tackle MMM-MirrorMirrorOnTheWall (damn, this is proving to be more difficult than i imagined lol)

            S 1 Reply Last reply Reply Quote 0
            • S
              sdetweil @FruityBebbles last edited by

              @FruityBebbles the voice based modules have a heck of a time… lots of tricky dependencies (which keep changing out from under the module as time goes by)

              Sam

              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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy