Bugsounet Coding

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

    Solved Google assistant YouTube not opening

    Issues
    12
    160
    2031
    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.
    • R
      Ray BetaTester last edited by

      so I can’t get YouTube to display. For example, when I say YouTube Michael Jackson thriller it will respond. Here’s a video, but it doesn’t do anything.

      I did everything on Wiki and I even got the API and it’s in the token folder.
      I also have the following things turned on in the config file.

      useEXT: true
      useYoutube: true
      useVLC: true
      useCast: true

      I also ran npm run cvlc
      I also went into the vlc preferred settings then change the output to OpenGL video output, which I found on your website Here.

      so what am I missing here. Why isn’t it displaying, everything working normally YouTube just doesn’t display

       *
       * By Michael Teeuw https://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information on how you can configure this file
       * see https://docs.magicmirror.builders/getting-started/configuration.html#general
       * and https://docs.magicmirror.builders/modules/configuration.html
       */
      var config = {
      	address: "localhost", 	                                // Address to listen on, can be:
      	electronOptions: {						                // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
      	 webPreferences: {						                // - another specific IPv4/6 to listen on a specific interface
      	  webviewTag: true						                // - "0.0.0.0", "::" to listen on any interface
      	 }						                                // Default, when address config is left out or empty, is "localhost"
          },
      	port: 8080,
      	basePath: "/", 	                                        // The URL path where MagicMirror is hosted. If you are using a Reverse proxy
      					                                        // you must set the sub path here. basePath must end with a /
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], 	// Set [] to allow all IP addresses
      															// or add a specific IPv4 of 192.168.1.5 :
      															// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
      															// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
      															// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
      
      	useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
      	httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
      	httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true
      
      	language: "en",
      	locale: "en-US",
      	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
      	timeFormat: 12,
      	units: "imperial",
      	// serverOnly:  true/false/"local" ,
      	// local for armv6l processors, default
      	//   starts serveronly and then starts chrome browser
      	// false, default for all NON-armv6l devices
      	// true, force serveronly mode, because you want to.. no UI on this ```device
      
      
      ```      {
      			module: "MMM-GoogleAssistant",
      			position: "top_bar",
      			configDeepMerge: true,
      			config: {
      				debug: false,
      				assistantConfig: {
      				latitude: 37.902881,
      				longitude: -122.057133,
      		},
      			 responseConfig: {
      				useFullscreen: false,
      			    useResponseOutput: true,
      				responseOutputCSS: "response_output.css",
      				screenOutputTimer: 5000,
      				activateDelay: 250,
      				useAudioOutput: true,
      				useChime: true,
      				confirmationChime: true,
      				useInformations: true
      		},
      		     Extented: {
      				useEXT: true,                      /* This option will activate Extented Display (or not) */
      				deviceName: "MagicMirror",          /* Define your device name on casting and spotify using */
      				stopCommand: "stop",                /* Personalized command for stop Extented Display */
      			youtube: {
      				useYoutube: true,                  /* When you set useYoutube to false, discovered YouTube video will not be played. */
      				youtubeCommand: "youtube",          /* Personalized keyword command for youtube search */
      				displayResponse: true,              /* Display the narive response of the google server */
      				useVLC: true,                      /* VLC for reading YouTube Video. */
      				minVolume: 30,                      /* Volume to set when assistant speaking */
      				maxVolume: 100                      /* Volume to set when video playing */
      			},
      			cast: {
      				useCast: true,            /* When you set useCast to true, you can Cast to your mirror (Actually only YouTube is supported) */
      				port: 8569                 /* server port */
      			},
      		},
      		     recipes: [ "MM2-Restart.js" ],
      		  }
      ```	    },
      1 Reply Last reply Reply Quote 0
      • D
        DJB1966 Helpers last edited by

        Try enabling youtube API in google cloud platform
        youtube.PNG

        1 Reply Last reply Reply Quote 0
        • R
          Ray BetaTester last edited by

          I thought I did that but I’ll look again

          1 Reply Last reply Reply Quote 0
          • D
            DJB1966 Helpers last edited by DJB1966

            You would of done the Google assistant API not the youtube API
            Do you know were to find youtube API

            1 Reply Last reply Reply Quote 0
            • R
              Ray BetaTester last edited by

              Yep, it’s exactly what you got. It’s enabled

              1 Reply Last reply Reply Quote 0
              • R
                Ray BetaTester last edited by

                I did exactly what was on the Wiki

                1 Reply Last reply Reply Quote 0
                • R
                  Ray BetaTester last edited by

                  YouTube Data API v3
                  Google

                  The YouTube Data API v3 is an API that provides access to YouTube data, such as videos, playlists,…

                  API Enabled

                  1 Reply Last reply Reply Quote 0
                  • D
                    DJB1966 Helpers last edited by

                    check config it needs to look like this

                    module: "MMM-GoogleAssistant",
                                position: "top_left",
                                configDeepMerge: true,
                                config: {
                                  debug: false,
                                  assistantConfig: {
                    		lang: "en-AU",
                                    latitude: xxxxxxx,
                                    longitude: xxxxxxxx,
                    	      },
                                  responseConfig: {
                    		useFullscreen: true,
                                    useResponseOutput: true,
                                    chimes: {},
                                    imgStatus: {
                    		  confirmation: "confirmation.gif",
                    		  listen: "listen.gif",
                    		  error: "error.gif",
                    		  reply: "reply.gif",
                    		  standby: "standby.gif",
                    		},
                                    zoom: {
                    		  transcription: "80%",
                                      responseOutput: "60%"
                    		}
                                  },
                                  micConfig: {
                    		recorder: "arecord",
                    		device: "default",},
                                  Extented: {
                                    useEXT: true,
                                    deviceName: "MagicMirror",
                                    stopCommand: "stop",
                                    youtube: {
                    		useYoutube: true,
                                    youtubeCommand: "youtube",
                                    displayResponse: true,
                                    useVLC: true,
                                    minVolume: 30,
                                    maxVolume: 100
                                    },
                                    links: {
                    		  useLinks: true,
                    		  displayDelay: 60 * 1000,
                                      scrollActivate: true,
                                      scrollStep: 25,
                                      scrollInterval: 1000,
                                      scrollStart: 5000},
                                    photos: {
                    		  usePhotos: true,
                                      useGooglePhotosAPI: true,
                                      displayType: "Recipe",
                                      displayDelay: 10 * 1000,
                                      albums: ["magicmirror2","screen"],
                                      sort: "new",
                    		  hiResolution: true,
                                      timeFormat: "DD/MM/YYYY HH:mm",
                                      moduleHeight: 300,
                                      moduleWidth: 300,
                    		},
                                    volume: {
                    		  useVolume: true,
                                      volumePreset: "ALSA",
                                      myScript: null},
                                    welcome: {},
                                    screen: {
                    		  useScreen: true,
                    		  animateBody: true,
                                      delay: 5 * 60 * 1000,
                                      turnOffDisplay: false,
                                      mode: 1,
                                      ecoMode: false,
                                      delayed: 0,
                                      displayCounter: false,
                                      displayBar: true,
                                      displayStyle: "Text",
                                      detectorSleeping: false,
                                      governorSleeping: false,
                                      displayLastPresence: true
                    		},
                                    touch: {},
                                    pir: {},
                                    governor: {},
                                    internet: {
                    		  useInternet: true,
                                      displayPing: false,
                                      delay: 2* 60 * 1000,
                                      scan: "google.fr",
                                      command: "pm2 restart 0",
                                      showAlert: true,
                                      needRestart: false},
                                    cast: {},
                                    spotify: {
                                      useSpotify: true,
                                      visual: {
                    		    updateInterval: 1000,
                                        idleInterval: 10000,
                                        useBottomBar: false,
                                        CLIENT_ID: "xxxxxxxxxxx",
                                        CLIENT_SECRET: "xxxxxxxxxxx",
                    		  },
                                      player: {  
                    		    type: "Librespot",
                    		    email: "xxxxxxx",
                                        password: "xxxxxxxxx",
                                        minVolume: 10,
                    		    maxVolume: 100,
                                        usePause: false
                                      },
                                    },
                                },
                    
                    1 Reply Last reply Reply Quote 0
                    • R
                      Ray BetaTester last edited by

                      Which part are you talking about all of it even Spotify which I’m not interested in

                      1 Reply Last reply Reply Quote 0
                      • D
                        DJB1966 Helpers last edited by

                        http://wiki.bugsounet.fr/en/MMM-GoogleAssistant/ConfigurationStructure

                        1 Reply Last reply Reply Quote 0
                        • R
                          Ray BetaTester last edited by

                          That’s exactly what I went by

                          1 Reply Last reply Reply Quote 0
                          • D
                            DJB1966 Helpers last edited by DJB1966

                            useResponseOutput: true,

                            responseConfig: {
                               useFullscreen: true,
                               useResponseOutput: true,
                               responseOutputCSS: "response_output.css",
                            
                            1 Reply Last reply Reply Quote 0
                            • D
                              DJB1966 Helpers last edited by

                              that’s one mistake

                              1 Reply Last reply Reply Quote 0
                              • R
                                Ray BetaTester last edited by

                                Okay I got that I change my user full screen to true

                                1 Reply Last reply Reply Quote 0
                                • R
                                  Ray BetaTester last edited by

                                  So is link in Internet do they have to be added

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    Ray BetaTester last edited by

                                    As well as screen

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      Ray BetaTester last edited by

                                      So I changed everything to your specification links works now. I didn’t think that had to be in their.
                                      But YouTube still isn’t working.

                                      			module: "MMM-GoogleAssistant",
                                      			position: "top_bar",
                                      			configDeepMerge: true,
                                      			config: {
                                      				debug: false,
                                      				assistantConfig: {
                                      				latitude: 37.902881,
                                      				longitude: -122.057133,
                                      		},
                                      			 responseConfig: {
                                      				useFullscreen: true,
                                                      useResponseOutput: true,
                                                      chimes: {},
                                                      imgStatus: {
                                      				confirmation: "confirmation.gif",
                                      				listen: "listen.gif",
                                      				error: "error.gif",
                                      				reply: "reply.gif",
                                      				standby: "standby.gif",
                                      		},
                                                   zoom: {
                                      				transcription: "80%",
                                                      responseOutput: "60%"
                                      			}
                                              },
                                      		     Extented: {
                                      				useEXT: true,                      /* This option will activate Extented Display (or not) */
                                      				deviceName: "MagicMirror",          /* Define your device name on casting and spotify using */
                                      				stopCommand: "stop",                /* Personalized command for stop Extented Display */
                                      			youtube: {
                                      				useYoutube: true,                  /* When you set useYoutube to false, discovered YouTube video will not be played. */
                                      				youtubeCommand: "youtube",          /* Personalized keyword command for youtube search */
                                      				displayResponse: true,              /* Display the narive response of the google server */
                                      				useVLC: true,                      /* VLC for reading YouTube Video. */
                                      				minVolume: 30,                      /* Volume to set when assistant speaking */
                                      				maxVolume: 100                      /* Volume to set when video playing */
                                      		},
                                      			links: {
                                      				useLinks: true,
                                      				displayDelay: 60 * 1000,
                                      				scrollActivate: true,
                                      				scrollStep: 25,
                                      				scrollInterval: 1000,
                                      				scrollStart: 5000
                                      		},
                                      			internet: {
                                      				useInternet: true,
                                      				displayPing: false,
                                      				delay: 2* 60 * 1000,
                                      				scan: "google.com",
                                      				command: "pm2 restart 0",
                                      				showAlert: true,
                                      				needRestart: false
                                      		},
                                      			cast: {},
                                      		},
                                      		     recipes: [ "MM2-Restart.js" ],
                                      		  }
                                      ```	    },
                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        DJB1966 Helpers last edited by

                                        ok you config structure needs fixing your got }, in the wrong places “zoom” should line up with letter “i” in images

                                        },
                                                     zoom: {
                                        				transcription: "80%",
                                                        responseOutput: "60%"
                                        			}
                                                },
                                        		     Extented:
                                        

                                        [http://wiki.bugsounet.fr/en/MMM-GoogleAssistant/ConfigurationStructure](link URL)

                                        {
                                          module: "MMM-GoogleAssistant",
                                          position: "top_left",
                                          configDeepMerge: true,
                                          config: {
                                            debug: false,
                                            assistantConfig: {},
                                            responseConfig: {
                                              chimes: {},
                                              imgStatus: {},
                                              zoom: {}
                                            },
                                            micConfig: {},
                                            Extented: {
                                              useEXT: false,
                                              youtube: {},
                                              links: {},
                                              photos: {},
                                              volume: {},
                                              welcome: {},
                                              screen: {},
                                              touch: {},
                                              pir: {},
                                              governor: {},
                                              internet: {},
                                              cast: {},
                                              spotify: {
                                                useSpotify: false,
                                                visual: {},
                                                player: {}
                                              },
                                            },
                                            recipes: [],
                                            NPMCheck: {}
                                          }
                                        },
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          Ray BetaTester last edited by

                                          I have clean this up since the post excuse the previous posting. It seems when I do a copy and paste. It seems to throw things around a lot.
                                          I left out things that I’m not interested in because their default like zoom
                                          so let me know what you think. I’m still having trouble with YouTube

                                          ``{
                                          module: “MMM-GoogleAssistant”,
                                          position: “top_bar”,
                                          configDeepMerge: true,
                                          config: {
                                          debug: false,
                                          assistantConfig: {
                                          latitude: 37.902881,
                                          longitude: -122.057133,
                                          },
                                          responseConfig: {
                                          useFullscreen: true,
                                          useResponseOutput: true,
                                          responseOutputCSS: “response_output.css”,
                                          screenOutputTimer: 5000,
                                          activateDelay: 250,
                                          useAudioOutput: true,
                                          useChime: true,
                                          confirmationChime: true,
                                          useInformations: true
                                          },
                                          Extented: {
                                          useEXT: true, /* This option will activate Extented Display (or not) /
                                          deviceName: “MagicMirror”, /
                                          Define your device name on casting and spotify using /
                                          stopCommand: “stop”, /
                                          Personalized command for stop Extented Display /
                                          youtube: {
                                          useYoutube: true, /
                                          When you set useYoutube to false, discovered YouTube video will not be played. /
                                          youtubeCommand: “youtube”, /
                                          Personalized keyword command for youtube search /
                                          displayResponse: true, /
                                          Display the narive response of the google server /
                                          useVLC: true, /
                                          VLC for reading YouTube Video. /
                                          minVolume: 30, /
                                          Volume to set when assistant speaking /
                                          maxVolume: 100 /
                                          Volume to set when video playing /
                                          },
                                          links: {
                                          useLinks: true,
                                          displayDelay: 60 * 1000,
                                          scrollActivate: false,
                                          scrollStep: 25,
                                          scrollInterval: 1000,
                                          scrollStart: 5000
                                          },
                                          internet: {
                                          useInternet: true,
                                          displayPing: false,
                                          delay: 2
                                          60 * 1000,
                                          scan: “google.com”,
                                          command: “pm2 restart MagicMirror”,
                                          showAlert: true,
                                          needRestart: false
                                          },
                                          },
                                          recipes: [ “MM2-Restart.js” ],
                                          }

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            Ray BetaTester last edited by

                                            			module: "MMM-GoogleAssistant",
                                            			position: "top_bar",
                                            			configDeepMerge: true,
                                            			config: {
                                            				debug: false,
                                            				assistantConfig: {
                                            				latitude: 37.902881,
                                            				longitude: -122.057133,
                                            		},
                                            			 responseConfig: {
                                            				useFullscreen: true,
                                            			    useResponseOutput: true,
                                            				responseOutputCSS: "response_output.css",
                                            				screenOutputTimer: 5000,
                                            				activateDelay: 250,
                                            				useAudioOutput: true,
                                            				useChime: true,
                                            				confirmationChime: true,
                                            				useInformations: true
                                            		},
                                            		     Extented: {
                                            				useEXT: true,                      /* This option will activate Extented Display (or not) */
                                            				deviceName: "MagicMirror",          /* Define your device name on casting and spotify using */
                                            				stopCommand: "stop",                /* Personalized command for stop Extented Display */
                                            			youtube: {
                                            				useYoutube: true,                  /* When you set useYoutube to false, discovered YouTube video will not be played. */
                                            				youtubeCommand: "youtube",          /* Personalized keyword command for youtube search */
                                            				displayResponse: true,              /* Display the narive response of the google server */
                                            				useVLC: true,                      /* VLC for reading YouTube Video. */
                                            				minVolume: 30,                      /* Volume to set when assistant speaking */
                                            				maxVolume: 100                      /* Volume to set when video playing */
                                            		},
                                            			links: {
                                            				useLinks: true,
                                            				displayDelay: 60 * 1000,
                                            				scrollActivate: false,
                                            				scrollStep: 25,
                                            				scrollInterval: 1000,
                                            				scrollStart: 5000
                                            		},
                                            			internet: {
                                            				useInternet: true,
                                            				displayPing: false,
                                            				delay: 2* 60 * 1000,
                                            				scan: "google.com",
                                            				command: "pm2 restart MagicMirror",
                                            				showAlert: true,
                                            				needRestart: false
                                            			},
                                            		},
                                            		     recipes: [ "MM2-Restart.js" ],
                                            			}
                                            ```	    },
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB | @bugsounet ©2022