MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Help please

    Development
    3
    5
    325
    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.
    • I
      innovation last edited by

      Hello, for my project I want to add multiple different screens - like an app. The monitor I bought is not a touch one so it cannot work like an iPad.

      So can I add multiple screens and with the voice command of “next” can it switch to another screen? How can I do that if it is possible?

      This would really help me. Thank you

      S 1 Reply Last reply Reply Quote 0
      • J
        j.e.f.f Project Sponsor Module Developer last edited by

        @innovation There are a few ways to do this. I’ve done this for a kitchen display where I have several pages that rotate in sequence, but are also controlled manually with an IR remote control (using the LEFT/RIGHT buttons to go to previous.next pages).

        I’m using a combination of the Profile Switcher module (https://github.com/tosti007/MMM-ProfileSwitcher.git) and my own Profile Carousel module the I wrote to handle input from the IR remote (https://github.com/jclarke0000/MMM-ProfileCarousel).

        My config looks like this:

            {
              module: "MMM-ProfileSwitcher",
              disabled: false,
              config: {
                defaultClass: "L_CALENDAR",
                everyoneClass: "L_ALL",
                includeEveryoneToDefault: true,
                defaultTime: 10000,
                useLockStrings: true
                // animationDuration: 500,
                // timers: {
                //   "L_CALENDAR" : {
                //     profile: "L_FORECAST"
                //   },
                //   "L_FORECAST" : {
                //     profile: "L_CALENDAR"
                //   }
                // }
              }
            },
        
            {
              module: "MMM-ProfileCarousel",
              disabled: false,
              config: {
                profiles: ["L_CALENDAR","L_FORECAST","L_NOTES"],
                carouselDelay: 10000, //10 seconds
                carouselResumeDelay: 1 * 30 * 1000, //30 seconds
                useScreensaver: true,
                screensaverProfile: "L_WORDCLOCK",
                screensaverTimeout: 1.25 * 60 * 1000,
                screensaverBlackoutPeriod: {
                  start: 11,
                  end: 12
                }        
              }
            },
        

        And every module has one or more class names applied that indicate which profile the module should be visible for:

        The clock module is visible for all profiles, so it looks like this:

            {
              module: "clock",
              position: "top_left",
              classes: "L_CALENDAR L_FORECAST L_NOTES",
              config: {
                timeFormat: 12,
                showPeriod: true,
                displaySeconds: false
              }
            },
        

        While my weather module is only available on one page, so it looks like this:

            {
              module: "MMM-OpenWeatherForecast",
              position: "top_right",
              header: "Forecast",
              classes: "L_FORECAST",
              disabled: false,
              config: {
        

        In your case, you’ll need to work with one of the Voice modules to provide input to Profile Switcher. You can explicitly set the current profile using the sendNotification function:

          this.sendNotification("CURRENT_PROFILE",  "profile name"); 
        
        I 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @innovation last edited by

          @innovation I think u can do this with MMM-Pages and MMM-Swipe.

          pages does the same classes organization of modules, and swipe handles sending notifications to pages to change to different psges

          Sam

          Create a working config
          How to add modules

          I 1 Reply Last reply Reply Quote 0
          • I
            innovation @j.e.f.f last edited by

            @j-e-f-f
            Thank you so much. Checking right away

            1 Reply Last reply Reply Quote 0
            • I
              innovation @sdetweil last edited by

              @sdetweil Thank you! On it!

              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