Solved YouTube Error - MMM-GoogleAssistant V3
-
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
},
},
}
}, -
Did you get the youtube token?
-
Thanks for your quick reply. Yes, I do have the YT token.
-
@dresch360 said in YouTube Error - MMM-GoogleAssistant V3:
youtubeCommand: “video”,
Change back to youtube
youtubeCommand: “youtube”,
-
Thanks - Still getting the same error message.
-
what is you command your asking
-
“Youtube Michael Jackson Thriller”
-
@dresch360 said in YouTube Error - MMM-GoogleAssistant V3:
micConfig: {
recorder: “arecord”,
device: “plughw:CARD=Device,DEV=0”,micConfig: { recorder: "arecord", device: "default" },
-
Is the above config someone you downloaded???
-
@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: falseinternet: { useInternet: false, displayPing: false, delay: 2* 60 * 1000, scan: "google.fr", command: "pm2 restart 0", showAlert: true, needRestart: false },
-
Thanks again for your help. Still getting the same error message.
-
classes: “hide”,
?? what is this for what other modules I get a config problem. Disable module and try?
TryresponseConfig: { useFullscreen: true, useResponseOutput: true,
Try updating pi
sudo apt update && sudo apt upgrade -y
Change debug todebug: 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? -
This post is deleted! -
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!!
-
Good to hear.