Bugsounet Coding

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

    Solved YouTube Error - MMM-GoogleAssistant V3

    Issues
    2
    15
    189
    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.
    • D
      Dresch360 Donators last edited by

      Thank you for this amazing module! If this has already been answered, I apologize.

      When I request a YouTube video from GA, I get the following error:
      “YouTube: TypeError: Cannot read property title of undefined”

      I ran npm run cvlc and all tests were passed. I also have the appropriate YouTube API enabled.

      Other than this, GA works perfectly. Any help would be greatly appreciated.

      Here is my config:

      {
      disabled: false,
      classes: “hide”,
      module: “MMM-GoogleAssistant”,
      position: “top_left”,
      configDeepMerge: true,
      debug: true,
      config: {
      assistantConfig: {
      latitude: xx.1706879,
      longitude: -xxx.603328,
      },
      micConfig: {
      recorder: “arecord”,
      device: “plughw:CARD=Device,DEV=0”,
      },
      responseConfig: {
      useFullscreen: false,
      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: “video”, /
      Personalized keyword command for youtube search /
      displayResponse: true, /
      Display the native 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
      },
      },
      }
      },

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

        Did you get the youtube token?

        1 Reply Last reply Reply Quote 0
        • D
          Dresch360 Donators last edited by

          Thanks for your quick reply. Yes, I do have the YT token.

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

            @dresch360 said in YouTube Error - MMM-GoogleAssistant V3:

            youtubeCommand: “video”,
            

            Change back to youtube

            youtubeCommand: “youtube”,
            
            1 Reply Last reply Reply Quote 0
            • D
              Dresch360 Donators last edited by

              Thanks - Still getting the same error message.

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

                what is you command your asking

                1 Reply Last reply Reply Quote 0
                • D
                  Dresch360 Donators last edited by

                  “Youtube Michael Jackson Thriller”

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

                    @dresch360 said in YouTube Error - MMM-GoogleAssistant V3:

                    micConfig: {
                    recorder: “arecord”,
                    device: “plughw:CARD=Device,DEV=0”,

                    micConfig: {
                      recorder: "arecord",
                      device: "default"
                    },
                    
                    1 Reply Last reply Reply Quote 0
                    • D
                      DJB1966 Helpers last edited by

                      Is the above config someone you downloaded???

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

                        @dresch360 said in YouTube Error - MMM-GoogleAssistant V3:

                        assistantConfig: {
                        latitude: xx.1706879,
                        longitude: -xxx.603328,
                        },

                        assistantConfig: {
                          lang: "en-US",
                          latitude: 51.508530,
                          longitude: -0.076132
                        },
                        

                        also missing *

                        internet: {
                        useInternet: true,
                        displayPing: false,
                        delay: 2 60 * 1000,
                        scan: “google.com”,
                        command: “pm2 restart 0”,
                        showAlert: true,
                        needRestart: false

                        internet: {
                          useInternet: false,
                          displayPing: false,
                          delay: 2* 60 * 1000,
                          scan: "google.fr",
                          command: "pm2 restart 0",
                          showAlert: true,
                          needRestart: false
                        },
                        
                        1 Reply Last reply Reply Quote 0
                        • D
                          Dresch360 Donators last edited by

                          Thanks again for your help. Still getting the same error message.

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

                            classes: “hide”,?? what is this for what other modules I get a config problem. Disable module and try?
                            Try

                            responseConfig: {
                            useFullscreen: true,
                            useResponseOutput: true,
                            

                            Try updating pi sudo apt update && sudo apt upgrade -y
                            Change debug to debug: false,
                            What guide did you follow???
                            Is config from Wiki or did you follow another guide and copy-paste config??
                            Try API again as well as a new token?
                            Is GA at the latest build? have you tried updating?

                            1 Reply Last reply Reply Quote 0
                            • D
                              Dresch360 Donators last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • D
                                Dresch360 Donators last edited by

                                Thanks for your help! I feel silly now. In the “var config= {” - I had “webviewTag: true” commented out. I also updated using “sudo apt update && sudo apt upgrade -y” and changed
                                debug to “debug: false” and all works now.

                                All works now. Thanks again!!

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

                                  Good to hear.

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