A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
MMM-Assistantmk2
-
@sean
Here’s what it says
{ module: "MMM-AssistantMk2", position: "bottom", config: { useScreen: true, youtubeAutoplay: true, responseAlert: false, alertError: false, pauseOnYoutube:false, deviceLocation: { coordinates: { latitude: 37.57, longitude: 126.98 }, }, profiles: { "default": { lang: "en-EN" } }, notifications: { ASSISTANT_ACTIVATED: "HOTWORD_PAUSE", ASSISTANT_DEACTIVATED: "HOTWORD_RESUME", }, onIdle: {
timer: 1000 * 30, // in 30sec after last Assistant Query, command “PAGE_1” will be activated.
command: “PAGE_1”
},onActivate: { //When you wakeup Assistant, command "PAGE_2" will be activated. timer: 0, command: "PAGE_2"
},
command: { "PAGE_1": { notificationExec: { notification: "PAGE_CHANGED", payload: 0 } }, "PAGE_2": { notificationExec: { notification: "PAGE_CHANGED", payload: 1 } } }, } },
-
@fri4end
So, onIdle or onActivate doesn’t work? or not your expectation? -
This post is deleted! -
@sean
No, onIdle and onActivate operate normally
We checked the status using the notification viewer module.Manual operation below
Below, when onActivate
I think the payload return is incorrect. -
@fri4end
Ah, I got it.And I’ve found what was wrong. Wait a min. I’ll patch for it. I assumed each payload should be object type. -
@fri4end
fixed.git pull
and try again. -
@sean
It works well. Thank you very much.^^