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

Multiple layouts/configs


  • Module Developer

    As the number of cool and interesting modules grows, it’d be good to have a way to have multiple possible modules configurations. Mostly so our nice clean mirrors don’t get too cluttered! So, for instance, one could:

    • Display different modules at different times of day (e.g. travel time to work in the morning only)
    • Have a wired button (or skywriter ;)) to swap between different layouts/modules
    • Display a different layout based on face recognition
    • Be able to swap between languages globally
    • etc.

    I’m not sure how one could implement this sensibly. Maybe give modules the ability to swap between layouts, e.g. for face recognition? Doing it without having to reload modules? Can electron handle multiple tabs and do it that way? Would this increase overheads on the pi? Are these questions rhetorical?

    But anyway, certainly food for thought!


  • Admin

    Different layouts based on facial recognition is already implemented here 🙂 It should be trivial to write something similar for the other use cases you just mentioned! Have a look at my code for an example.



  • The core system allows a module to switch modules based on a class. So in theory, we could simply built a module which switches modules on or off based on a time (or something else …)


  • Module Developer

    @MichMich Ah, I hadn’t even thought of that! I will look into it, probably after exams.


  • Moderator

    Hand gestures anyone? 🙂



  • @KirAsh4 i prefer voice: “show me the traffic information” - but gestures would be awesome too. 🙂


  • Admin

    Wanted to implement that. I still have a small sensor I bought for it laying around but I am now in favor of voice commands 😃


  • Moderator

    @MichMich

    Yes voice commands would be fine too, I was thinking more in terms of ‘in addition to voice commands …’ Imagine being able to ‘wave’ things away from the screen.

    I thought of that last night while working on the Calendar module. One thing that came to mind was, what if it displays a notification when an event is about to happen (say at 60, 30, 15 minutes prior to the event), much like the Google Calendar will send you reminders (if set).

    At present state, there is no easy way for the user to dismiss that notification, it’s all done in the config with a semi-fixed timer. So I can display a popup and hide it after x-time. But what if the user could do that … one way is to integrate a button the user could press to acknowledge the popup … then I thought, what if they can simply ‘wave it away’ … hence hand gestures. 🙂



  • @KirAsh4 i thought about a touchless sensor for that 🙂