Read the statement by Michael Teeuw here.
Show/Hide modules with vocal commands
-
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.
-
@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
-
@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.
-
@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.
-
@Anthony if the module does not provide it directly, the mm runtime does the suspend/resume for the module
-
@sdetweil I see. I will definetly check it and try it. Thank you for your time.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login