MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    UNSOLVED Show/Hide modules with vocal commands

    Troubleshooting
    2
    6
    117
    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
      Anthony Project Sponsor last edited by

      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 Reply Quote 0
      • S
        sdetweil @Anthony last edited by

        @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

        Create a working config
        How to add modules

        A 1 Reply Last reply Reply Quote 0
        • A
          Anthony Project Sponsor @sdetweil last edited by

          @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 Reply Quote 0
          • A
            Anthony Project Sponsor @Anthony last edited by

            @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 Reply Quote 0
            • S
              sdetweil @Anthony last edited by

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

              Sam

              Create a working config
              How to add modules

              A 1 Reply Last reply Reply Quote -1
              • A
                Anthony Project Sponsor @sdetweil last edited by

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