@Sean
OK. Tks for your help & advise. Waitting
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-Clap
@Sean
With MMM Page selector, If I not turn page, i must wait for changing by itself
That’s why I use CLAP to turn page quickly
With MMM Asisstant MK2, I need use MMM Hotword to see my request, if I use another module to trigger, I can’t see itfinally, CLAP and Hotword use at the same time…
-
RE: MMM-Clap
@Sean
I’d already, but didn’t work{ module: "MMM-NotificationTrigger", //This module works in Background, so you don't need to describe `position`. config: { useWebhook: false, // If you want to activate webhook as Notification emitter, set true. (eg. IFTTT) triggers:[ // Array of triggers. { trigger: "PAGE_CHANGED", //REQUIRED triggerSenderFilter: (sender) => { //OPTIONAL should return true or false if (sender == "MMM-Page-Selector") { return true } return false }, triggerPayloadFilter: (payload) => { //OPTIONAL should return true or false if (typeof payload.value !== 'undefined' && payload.value > 0) { return true } return false }, fires: [ // Array of fires. You can enable multi-firing with one trigger. { fire:"CLAP_RESUME", //REQUIRED payload: (payload) => { //OPTIONAL. transform received payload to what your target module wants. return payload }, // delay: 1000, //OPTIONAL, if this is set, your outgoing notification will be fired after delay. // exec: "ls -l" //OPTIONAL, if exists, this script will be executed, and the result will be returned with "OUTGOING_NOTIFICATION_RESULT" and payload. Can also be specified as a function which accepts the payload as an argument and returns the command to execute. }, ], }, ] } },
-
RE: MMM-Clap
@Sean
The scenario is:
Step 1: Clap action
Step 2: Clap sound detected, MMM Clap send output notification to MMM Page Selector while Mic still not released yet
Step 3: MMM Page Selector receive input notification then change page
Step 4: MMM Page Selector sends output notification CLAP_PAUSE to MMM Page Selector to release the MIC and waitting for next clap sound -
RE: MMM-Clap
@Sean
"1": { notificationExec: { notification: "PAGE_SELECT", payload: 1 }, },
It’s worked to send from MMM-Clap to MMM-Page-Selector
But still can not call CLAP_RESUME & CLAP_PAUSE in notification trigger out of these modules, because of it hasn’t got this function -
RE: MMM-Clap
@Sean
I’ve just configured MMM-Clap to work with MMM Assistant MK2 OK. But can’t work with MMM-Page-Selector and other modules that needs more than one notification trigger parameter,(MMM Assistant MK2 has only one )this.sendNotification("PAGE_SELECT", "2");
This is my code in MMM-Clap
defaultCommandMode: "MODE_DEFAULT", commands: { "MODE_DEFAULT": { "1": { notificationExec: { notification: "PAGE_SELECT", payload: {profile: "1"} }, restart:flase, }, }
And still can not call CLAP_RESUME & CLAP_PAUSE in notification trigger out of these module, because of it hasn’t got this function
Tks and waitting for you response !
-
RE: MMM-Hotword (v2) - whole-new-built
@Sean
Is there any “while…do” structure for using “hotword”, if have, we can do this lock function that temporary disable hotword
for example, the hotword to work with MMM Assistant MK2 is “google”
the hotword to lock is “lock_now”, the hotword to unlock is “hello123”
hotword lock detect procedure is background running
The structure is:
while { (("hotword lock detect procedure" )not equal to "lock_now" ) && ("hotword lock detect procedure" )not equal to "unlock_now" ) } do { - setup hotword "google" to interactive MMM Assistant MK2 }
-
RE: MMM-Page-Selector: A page switcher that can set positions of modules
Hi all
To make MMM-page-indicator work with MMM-Page-Selector, we must add MMM-page-indicator in to pages
{ module: "MMM-page-indicator", position: "bottom_bar", "pages": {"Home": "bottom_bar", "News": "bottom_bar","Weather": "bottom_bar","Entertaiment": "bottom_bar","Smarthome": "bottom_bar","System": "bottom_bar"}, config: { pages: 6, } },