MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

MMM-Pages and copies of modules



  • Here’s what i’m trying to do,

    On page 1 of my MM I have the default holiday calendar module. On page 4 i’d like to have a different calendar, but if I choose calendar as a module it’s just going to load my holiday one, and not my google calendar. I can set up the calendar module to load both but I cant figure out how to specify which calendar to load on which page.

    Is there a way to copy the calendar module, or is there a way to setup the module with multiple calendars with the ability to select specific ones based on what page i’m on?

    I was able to sort of do this on my sports page by copying the mystandings module several times and changing the config on each one, but that’s going to get cumbersome, and im not always sure what line items to update. I can keep poking around but was hoping someone here knew a better method.

    Thanks for any help! If I figure this out i’ll make sure to update the post for anyone in the future who gets stuck on the same thing.



  • hello,

    you have to copy calendar to calendar2 folder, rename calendar.js to calendar2.js and rename in Module.register(“calendar2”,{…
    Then in defaultmodules. js add “default/calendar2”.



  • @chassain-0 said in MMM-Pages and copies of modules:

    hello,

    you have to copy calendar to calendar2 folder, rename calendar.js to calendar2.js and rename in Module.register(“calendar2”,{…
    Then in defaultmodules. js add “default/calendar2”.

    Thank you very much, I followed your instructions and it works now!!!


Log in to reply