Hello everyone, in the meantime, congratulations to @Bugsounet for the new developments!
I am not a developer and I am trying to create a “recipe” to change the pages of the MMM-Pages module with a voice command by means of GA. Below is the .js:
/** MMM-pages commands **/
/** check every notification received (plugins)**/
/** and check status of needed modules for change pages number (moduleExec) **/
/** @bugsounet **/
var recipe = {
transcriptionHooks: {
"pagina1": {
pattern: "metti pagina 1",
command: "pagina1"
},
commands: {
"pagina1": {
moduleExec: {
module: (param) => {
this.sendNotification("PAGE_CHANGED", 0)
}
},
}
}
plugins: {
onNotificationReceived: "pagina1"
},
}
}
exports.recipe = recipe
Could it work?
Can you help me?
Thanks.