• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Help please

Scheduled Pinned Locked Moved Development
5 Posts 3 Posters 844 Views 3 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.
  • I Offline
    innovation
    last edited by Mar 7, 2021, 4:58 AM

    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 Mar 7, 2021, 12:38 PM Reply Quote 0
    • J Offline
      j.e.f.f Project Sponsor Module Developer
      last edited by Mar 7, 2021, 12:14 PM

      @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 Mar 7, 2021, 1:49 PM Reply Quote 0
      • S Offline
        sdetweil @innovation
        last edited by Mar 7, 2021, 12:38 PM

        @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

        How to add modules

        learning how to use browser developers window for css changes

        I 1 Reply Last reply Mar 7, 2021, 2:01 PM Reply Quote 0
        • I Offline
          innovation @j.e.f.f
          last edited by Mar 7, 2021, 1:49 PM

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

          1 Reply Last reply Reply Quote 0
          • I Offline
            innovation @sdetweil
            last edited by Mar 7, 2021, 2:01 PM

            @sdetweil Thank you! On it!

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              1/5
              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