• 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.

Show/Hide modules with vocal commands

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 2 Posters 748 Views 2 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.
  • A Offline
    Anthony Project Sponsor
    last edited by Jul 28, 2022, 8:57 AM

    Hello everyone. I would like to know what part of code I should add into a modules code so I can show/hide it by voice. I use MMM-GoogleAssistant from bugsounet. For example I use MMM-WiFiPawwsword which has a function for vocal commands but to use with MMM-Modal. I wanted to be hidden on start and show only when I ask GA. I know I have to make a recipe for GA but what part of code should I change to the module to accept commands from GA and with what to replace it. Thank you in advance.

    S 1 Reply Last reply Jul 28, 2022, 11:08 AM Reply Quote 0
    • S Away
      sdetweil @Anthony
      last edited by Jul 28, 2022, 11:08 AM

      @Anthony the module should already have suspend and resume functions.

      so nothing in the module needs to change

      in the recipe just hide()or show() the module

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 1 Reply Last reply Jul 28, 2022, 11:32 AM Reply Quote 0
      • A Offline
        Anthony Project Sponsor @sdetweil
        last edited by Jul 28, 2022, 11:32 AM

        @sdetweil Thank you for your reply. I’ll check when I go home and give it a try. Unforunately I am not familiar with coding but I will try to make the recipe through some samples. Thank you again my friend.

        A 1 Reply Last reply Jul 28, 2022, 5:55 PM Reply Quote 0
        • A Offline
          Anthony Project Sponsor @Anthony
          last edited by Jul 28, 2022, 5:55 PM

          @Anthony said in Show/Hide modules with vocal commands:

          @sdetweil Hello again. Sorry for bothering you again. At this link is the MMM-WiFiPawwsword.js file. Can you please spot and show me where is show/hide function? Again sorry for bother but as you can understand I am totally newbie to this so it is difficult for me spot it. Thank you.

          S 1 Reply Last reply Jul 28, 2022, 7:11 PM Reply Quote 0
          • S Away
            sdetweil @Anthony
            last edited by Jul 28, 2022, 7:11 PM

            @Anthony if the module does not provide it directly, the mm runtime does the suspend/resume for the module

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            A 1 Reply Last reply Jul 29, 2022, 8:51 AM Reply Quote 0
            • A Offline
              Anthony Project Sponsor @sdetweil
              last edited by Jul 29, 2022, 8:51 AM

              @sdetweil I see. I will definetly check it and try it. Thank you for your time.

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