Bugsounet Coding

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    GA with MMM-Pages

    General Discussion
    5
    11
    180
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JSTAL last edited by

      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

      1 Reply Last reply Reply Quote 0
      • R
        Raf Translators last edited by

        http://forum.bugsounet.fr/topic/333/ga-recipe-mmm-pages?_=1637946977041

        J 2 Replies Last reply Reply Quote 2
        • J
          JSTAL @Raf last edited by

          @raf - great just what I wanted - thanks!

          1 Reply Last reply Reply Quote 0
          • J
            JSTAL @Raf last edited by

            @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 GA

            Then 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

            1 Reply Last reply Reply Quote 0
            • ClassicRed
              ClassicRed Donators last edited by

              Sorry for my stupid questions

              1 Reply Last reply Reply Quote 0
              • J
                JSTAL last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • bugsounet
                  bugsounet Main Coder last edited by bugsounet

                  See the proper place for create any GA recipe in wiki 😉

                  1 Reply Last reply Reply Quote 0
                  • J
                    JSTAL last edited by

                    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

                    1 Reply Last reply Reply Quote 0
                    • bugsounet
                      bugsounet Main Coder last edited by

                      are you sure of your recipe place your config ???

                      It sould be INSIDE config :{}
                      your is outside config: {}

                      {
                        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
                      },
                      
                      J 1 Reply Last reply Reply Quote 1
                      • T
                        test Helpers last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • J
                          JSTAL @bugsounet last edited by

                          @bugsounet - thanks - indeed this solved the issue - pages are moving now. Thanks

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Powered by NodeBB | @bugsounet ©2022