MagicMirror² v2.4.1 is available! For more information about this release, check out this topic.
Please read the release notes carefully since this update requires adjustments to your Raspberry Pi configuration!

Dynamic Module change



  • Hello,

    it would be very cool if you could choose an area with a group of x modules, which will change between xx seconds. For example, you have module traffic and module hue. It will show the traffic and after xx seconds it will show the hue module. For me this should be a magic mirror default function. We could have areas like metro tiles.

    For example:
    metro tile top center
    metro tile top left
    metro tile top right

    metro tile middle center
    metro tile middle left
    metro tile middle right

    metro tile bottom center
    metro tile bottom left
    metro tile bottom right

    and then:

    metro tile middle left = module calendar x, module calendar y, module todois (duration 5 seconds)

    metro tile bottom left = module sonos, module hue (duration 5 seconds)

    metro tile middle right = module traffic me, module traffic girlfriend

    All metro tile would update between the duration. We could use more modules on the limited space and we could use modules more than one time with different informations.

    This would be amazing.





  • No this is only a module to change type. I mean a magic mirror main function with more than one area.


  • Moderator

    I think you can use this. Have a look at Scheduling Module Display.

    Example:

    hides and shows modules



  • Thanks but if i see it right, i have to build thousands of entries in my config for change the modules every xxx seconds. That’s not the goal.


  • Moderator

    @Sillec123 You have to create one (pair of?) entries per module, as I see it.But this is limited to a per minute schedule. What you want might be an extension of the Carousel, but configurable for areas. Or a per second scheduling of the Module Scheduler.



  • @Jopyth Exactly but i think, it should be a main function and no module. It would make the smart mirror really smart. Please have a look on my example.



  • @Sillec123 said in Dynamic Module change:

    @Jopyth Exactly but i think, it should be a main function and no module. It would make the smart mirror really smart. Please have a look on my example.

    You could do it. Just build a ‘metro’ module and then add ‘classes’ to your modules config.js…

    But there is also a carousel module and a module scheduler…



  • @Jopyth said in Dynamic Module change:

    @Sillec123 You have to create one (pair of?) entries per module, as I see it.But this is limited to a per minute schedule. What you want might be an extension of the Carousel, but configurable for areas. Or a per second scheduling of the Module Scheduler.

    I’ve not tried it but as the node cron module supports seconds, then MMM-ModuleScheduler may too. Feel free to try using a 6 part expression rather than the 5 part expressions in the examples for the module and report back



  • @Sillec123 said in Dynamic Module change:

    Thanks but if i see it right, i have to build thousands of entries in my config for change the modules every xxx seconds. That’s not the goal.

    Possibly, but the module now supports global, group and individual schedules so the configurations can be minimised which may help.