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.

    Adding modules more than once

    Scheduled Pinned Locked Moved Feature Requests
    2 Posts 2 Posters 1.7k 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.
    • T Offline
      TheSwissGuy
      last edited by

      I would like to add modules more than once to my mirror but I encounterd some problems. I have two scenarios I would like to do with my mirror:

      The first one is using the Newsfeed module twice. After I added the possibilty to show images from newsfeeds I would like to add it once as a newsticker in the bottom corner (without an image) and an second time in a top corner to show recipes with a tasty image. This runs almost fine, one strange this is that the seconds module freezes in “loading” mode until the second update iteration. After that iteration it runs fine.

      The seconds scenario is using the MMM-Carousel module to display sport results. Therefore I add the MMM-NFL module once and the MMM-soccer three times to show the table from Spain, England and Germany. I would like to rotate between these 4 modules. Right now it shows only the NFL and one soccer module, the other two are lost.

      I guess, the reason is that in config.js the modules do not have unique names, they just have a module name. So when you add a module several times this could lead to unexpected behavior.

      What do you think guys, which way could be the best: Adding a id value in the config modules that uniquely defines a module? This would be a breaking change to the API where everybody has to adopt it. Or adding an alias value which could be optional and when not set it is equal to the module value?

      Or are there maybe already custom modules that could fulfill my needs? I didn’t check the code yet, how easy this would be to implement. What do you think, has anybody similiar needs? Should I go for it?

      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @TheSwissGuy
        last edited by

        @TheSwissGuy the id you are asking for is the identifier which is already in the system and looks like module_1_MMM-soccer etc.

        for the newsfeed i have no clue.

        propably the carousel is not working with the identifier

        Please create a github issue if you need help, so I can keep track

        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