GA with MMM-Pages
-
I don’t want to take my phone or any other device just to increase or decrease a page on the mirror.
What or howto procedure so GA is able to move to a next page on the mirror? (if that is possible)
= command to GA “page up / page down” ?thanks
-
-
@raf - great just what I wanted - thanks!
-
@raf - Trying to set this -up as instructed in the link you provided but I can’t get it to work.
As test I took over the recipe as given in the example and saved it into the recipes folder of GAThen adapted my config: But whatever command I say to jarvis or google, the pages doesn’t move.
Don’t see where i’m wrong.{ module: "MMM-GoogleAssistant", pages: {"HORLOGE": "top_left"}, position: "top_left", configDeepMerge: true, config: { assistantConfig: { latitude: xxxxxxx, longitude: xxxxxxx, }, }, recipes: ["Page_Movements.js", "with-MMM-pages.js"], },
Pages config: I think I missing her somewhere the name of the pages itself
{ module: "MMM-page-indicator", position: "top_bar", pages: {"all": "top_bar"} //config: { // pages: 4, // } }, { module: 'MMM-pages', config: { modules: [ [ "calendar", "compliments", "weather" ], //Page1 - HORLOGE [ "calendar", "weather" ], //Page2 - PLANNING [ "calendar", "MMM-NewsFeed" ], //Page3 - METEO [ "compliments" ] //Page4 - INFORMATION ], fixed: [ "clock", "MMM-PiTemp", "MMM-page-indicator", "MMM-GoogleAssistant", "MMM-Detector" ], hiddenPages: { // "screenSaver": [ "clock", "MMM-SomeBackgroundImageModule" ], // "admin": [ "MMM-ShowMeSystemStatsModule", "MMM-AnOnScreenMenuModule" ], }, } }, { module: "MMM-Page-Selector", position: "top_bar", config: { defaultPage: "HORLOGE", displayTitle: false, selectPageNotif: ["SELECT_PAGE"], incrementPageNotif: ["PAGE_UP"], decrementPageNotif: ["PAGE_DOWN"], //persistentPages: true, //autoChange: { interval: 100 } // Change page very 100 sec } },
Modifications performed on file “with-MMM-Pages.js” (don’t know if that is needed):
var recipe = { commands: { "PAGES": { moduleExec: { module: (param) => { // if (param.notification == "SPOTIFY_CONNECTED") { // this.sendNotification("PAGE_CHANGED", 1) // } // if (param.notification == "SPOTIFY_DISCONNECTED") { // this.sendNotification("PAGE_CHANGED", 0) // } // if (param.notification == "XBOX_ACTIVE") { // this.sendNotification("PAGE_CHANGED", 2) // } // if (param.notification == "XBOX_INACTIVE") { // this.sendNotification("PAGE_CHANGED", 0) // } if (param.notification == "HORLOGE") { this.sendNotification("PAGE_CHANGED", 0) } if (param.notification == "PLANNING") { this.sendNotification("PAGE_CHANGED", 1) } if (param.notification == "METEO") { this.sendNotification("PAGE_CHANGED", 2) } if (param.notification == "INFORMATION") { this.sendNotification("PAGE_CHANGED", 3) } }, } }
Sorry for my stupid questions
-
Sorry for my stupid questions
-
No one ?
I can ask questions to the mirror and get feedback, but commands are not working. Not even the ones from the existing recipes.
-
See the proper place for create any GA recipe in wiki
-
Still I can’t get a simple page movement with GA
I can ask questions on weather, who is “obi wan” etc… perfect response from GA.
but if I try a command such as “reboot please” - “restart please” - “Music Play” - “PAGE_INCREMENT” etc… there is no response from Jarvis or Google
The only command that is working is “stop”.recipes: [ “Reboot-Restart-Shutdown.js”, “ExtRadio_fr.js”, “ExtMusic.js”, “ExtGPhotos.js”, “Page_Movements.js”, “with-MMM-pages.js” ],
I can’t see what i’m doing wrong
-
are you sure of your recipe place your config ???
It sould be INSIDE
config :{}
your is outsideconfig: {}
{ module: "MMM-GoogleAssistant", pages: {"HORLOGE": "top_left"}, position: "top_left", configDeepMerge: true, config: { assistantConfig: { latitude: xxxxxxx, longitude: xxxxxxx, }, recipes: ["Page_Movements.js", "with-MMM-pages.js"], // there is better }, // recipes: ["Page_Movements.js", "with-MMM-pages.js"], <--- not good place for recipe },
-
This post is deleted! -
@bugsounet - thanks - indeed this solved the issue - pages are moving now. Thanks