Solved MMM-Youtube "Sorry, I can't do that on this device"
-
Hi @bugsounet. I just instaled and configured the last module I wanted to use with MMM-GoogleAssistant, and that is EXT-Youtube. I got the user and password and configured the electron options as well, but when I ask Jarvis to "Play Michael Jackson Thriller on Youtube, it responds with “Sorry, I can’t do that on this device”.
I want to mention that I am using MMM-Pages to change to the second page when casting YouTube from my Phone, but I configured EXT-Youtube to appear on the first page as full screen when using Jarvis.
Can you help me solve my problem please?
I am linking my config.js file, and I cannot see any obvious errors in the terminal
{ "address": "192.168.123.244", "electronOptions": { "webPreferences": { "webviewTag": true } }, "port": 8080, "basePath": "/", "ipWhitelist": [], "zoom": 1, "useHttps": false, "httpsPrivateKey": "", "httpsCertificate": "", "language": "en", "locale": "en-US", "logLevel": [ "INFO", "LOG", "WARN", "ERROR" ], "timeFormat": 24, "units": "metric", "modules": [ { "module": "MMM-pages", "config": { "modules": [ [ "MMM-GoogleAssistant", "Gateway", "EXT-Selfies", "EXT-Detector", "clock", "calendar", "MMM-OpenWeatherMapForecast", "MMM-ImageSlideshow", "newsfeed", "MMM-GoogleTasks", "EXT-Youtube" ], [ "MMM-Screencast" ] ], "fixed": [ "MMM-page-indicator", "MMM-pages" ], "hiddenPages": {}, "rotationTime": 0 } }, { "module": "Gateway", "config": { "debug": true, "username": "***", "password": "***", "CLIENT_ID": "***" } }, { "module": "EXT-Detector", "position": "top_center", "config": { "debug": true, "useIcon": true, "touchOnly": false, "detectors": [ { "detector": "Snowboy", "Model": "jarvis", "Sensitivity": 0.7 } ] } }, { "module": "MMM-GoogleAssistant", "configDeepMerge": true, "config": { "debug": true, "stopCommand": "stop", "assistantConfig": { "lang": "en-GB", "latitude": 46.78158, "longitude": 23.59898, "deviceRegistred": true }, "responseConfig": { "useFullscreen": false, "responseOutputCSS": "response_output.css", "screenOutputTimer": 5000, "useChime": true, "confirmationChime": true, "chimes": { "beep": "beep.mp3", "error": "error.mp3", "continue": "continue.mp3", "confirmation": "confirmation.mp3", "open": "Google_beep_open.mp3", "close": "Google_beep_close.mp3", "warning": "warning.ogg" }, "imgStatus": { "hook": "hook.gif", "standby": "standby.gif", "reply": "reply.gif", "error": "error.gif", "think": "think.gif", "continue": "continue.gif", "listen": "listen.gif", "confirmation": "confirmation.gif", "information": "information.gif", "warning": "warning.gif", "userError": "userError.gif" }, "zoom": { "transcription": "80%", "responseOutput": "60%" } }, "recipes": [ "../../EXT-Selfies/recipe/EXT-Selfies.js" ] } }, { "module": "clock", "position": "top_left", "config": { "displaySeconds": true, "showWeek": true, "showSunTimes": true, "showMoonTimes": true, "lat": 46.78158, "lon": 23.59898 } }, { "module": "calendar", "header": "Our family's calendar", "position": "top_left", "config": { "colored": true, "coloredSymbolOnly": false, "timeFormat": "relative", "getRelative": 24, "calendars": [ { "symbol": "calendar-check", "color": "#F8DD70", "url": "***", "fetchInterval": 60000, "maximumEntries": 3 }, { "symbol": "calendar-check", "color": "#F8DD70", "url": "***", "fetchInterval": 60000, "maximumEntries": 3 } ] } }, { "module": "calendar", "header": "Birthdays", "position": "top_left", "config": { "colored": true, "coloredSymbolOnly": false, "calendars": [ { "symbol": "birthday-cake", "color": "#6FC4F5", "url": "***", "fetchInterval": 61000, "maximumEntries": 3, "timeFormat": "absolute", "dateFormat": "MMM DO HH:mm", "fullDayEventFormat": "MMM HH:mm" } ] } }, { "module": "MMM-GoogleTasks", "header": "Tasks", "position": "top_left", "config": { "maxResults": 2, "listID": "***" } }, { "module": "MMM-Screencast", "position": "bottom_right", "config": { "castName": "MagicMirror", "position": "center", "height": 720, "width": 1080 } }, { "module": "MMM-OpenWeatherMapForecast", "header": "Weather in CLUJ-NAPOCA", "position": "top_right", "classes": "default everyone", "disabled": false, "config": { "apikey": "***", "latitude": "46.78162", "longitude": "23.59898", "iconset": "6oa", "concise": false, "forecastLayout": "tiled" } }, { "module": "newsfeed", "position": "bottom_bar", "config": { "feeds": [ { "title": "PRO-TV News", "url": "http://rss.stirileprotv.ro" }, { "title": "DIGI 24 News", "url": "http://www.digi24.ro/rss" }, { "title": "MediaFax", "url": "https://www.mediafax.ro/rss" }, { "title": "Gandul", "url": "https://www.gandul.ro/feed" }, { "title": "Cotidianul", "url": "https://www.cotidianul.ro/feed/" }, { "title": "Jurnalul National", "url": "https://jurnalul.ro/rss" } ], "showSourceTitle": true, "showPublishDate": true, "broadcastNewsFeeds": true, "broadcastNewsUpdates": true } }, { "module": "MMM-ImageSlideshow", "position": "lower_third", "config": { "imagePaths": [ "modules/MMM-ImageSlideshow/exampleImages" ], "fixedImageWidth": 1080, "fixedImageHeight": 810, "randomizeImageOrder": true } }, { "module": "MMM-page-indicator", "position": "bottom_bar", "config": { "pages": 2 } }, { "module": "EXT-Selfies", "disabled": false, "position": "middle_center", "config": { "debug": true, "captureWidth": 1920, "captureHeight": 1080, "device": "/dev/video0", "usePreview": false, "previewWidth": 1080, "previewHeight": 801, "displayButton": false, "buttonStyle": 1, "buttons": { "1": "master.png", "2": "halloween.png", "3": "birthday.png", "4": "christmas.png" }, "blinkButton": false, "playShutter": true, "resultDuration": 10000, "autoValidate": true, "counterStyle": 0, "showResult": true } }, { "module": "EXT-YouTube", "position": "middle_center", "disabled": false, "config": { "fullscreen": true, "width": "1080px", "height": "720px", "useSearch": true, "alwaysDisplayed": false, "displayHeader": false, "username": "***", "password": "***", "recipes": [ "../../EXT-YouTube/recipe/EXT-YouTube.js" ] } } ] }
-
[02.08.2023 15:08.31.730] [LOG] [GA] [LPCM16] Start listening: 1 channels - use: arecord - device: default - sample rate: 16000 [02.08.2023 15:08.35.267] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play', done: false } [02.08.2023 15:08.35.508] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play my', done: false } [02.08.2023 15:08.35.646] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play Mike', done: false } [02.08.2023 15:08.35.649] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play Michael', done: false } [02.08.2023 15:08.35.911] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play Michael Jack', done: false } [02.08.2023 15:08.35.915] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play Michael Jackson', done: false } [02.08.2023 15:08.36.506] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play Michael Jackson', done: false } [02.08.2023 15:08.36.846] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play Michael Jackson thriller', done: false } [02.08.2023 15:08.37.186] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play Michael Jackson thriller on', done: false } [02.08.2023 15:08.37.356] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play Michael Jackson thriller on your', done: false } [02.08.2023 15:08.37.363] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play Michael Jackson Thriller on YouTube', done: false } [02.08.2023 15:08.37.864] [LOG] [GA] [ASSISTANT] CONVERSATION:END_OF_UTTERANCE [02.08.2023 15:08.37.866] [LOG] [GA] [ASSISTANT] MIC:RECORDING_END [02.08.2023 15:08.37.870] [LOG] [GA] [ASSISTANT] CONVERSATION:TRANSCRIPTION { transcription: 'play Michael Jackson Thriller on YouTube', done: true } [02.08.2023 15:08.37.872] [LOG] [GA] [LPCM16] Stop listening [02.08.2023 15:08.39.453] [LOG] [GA] [ASSISTANT] CONVERSATION:AUDIO 1600 [02.08.2023 15:08.39.456] [LOG] [GA] [ASSISTANT] CONVERSATION:AUDIO 1600 [02.08.2023 15:08.39.460] [LOG] [GA] [ASSISTANT] CONVERSATION:AUDIO 1600 [02.08.2023 15:08.39.462] [LOG] [GA] [ASSISTANT] CONVERSATION:AUDIO 1600 [02.08.2023 15:08.39.464] [LOG] [GA] [ASSISTANT] CONVERSATION:AUDIO 1600 [02.08.2023 15:08.39.467] [LOG] [GA] [ASSISTANT] CONVERSATION:AUDIO 1600 [02.08.2023 15:08.39.469] [LOG] [GA] [ASSISTANT] CONVERSATION:AUDIO 1600 [02.08.2023 15:08.39.471] [LOG] [GA] [ASSISTANT] CONVERSATION:AUDIO 128 [02.08.2023 15:08.39.539] [LOG] [GA] [ASSISTANT] CONVERSATION:SCREEN object [02.08.2023 15:08.39.543] [LOG] [GA] [ASSISTANT] CONVERSATION:ACTION { requestId: '64cad6ec-0000-2036-b9fc-f4030438fce4' } [02.08.2023 15:08.39.546] [LOG] [GA] [ASSISTANT] CONVERSATION:RESPONSE [02.08.2023 15:08.39.552] [LOG] [GA] [ASSISTANT] CONVERSATION_ALL_RESPONSES_RECEIVED [02.08.2023 15:08.39.553] [LOG] [GA] [ASSISTANT] CONVERSATION_END:COMPLETED [02.08.2023 15:08.39.554] [LOG] [GA] [ASSISTANT] CONVERSATION_PP:RESPONSE_AUDIO_PROCESSED [02.08.2023 15:08.39.557] [LOG] [GA] [MP3] MP3 FILE CREATED 11328 bytes [02.08.2023 15:08.39.586] [LOG] [GA] [SCREEN_PARSER] [LINKS] Found: 0 [02.08.2023 15:08.39.596] [LOG] [GA] [SCREEN_PARSER] SCREEN_OUTPUT_CREATED [02.08.2023 15:08.39.601] [LOG] [GA] [ACTIVATE_ASSISTANT] RESULT { error: { error: null, message: null, audio: false }, action: { requestId: '64cad6ec-0000-2036-b9fc-f4030438fce4' }, text: "Sorry, I can't do that on this device.", screen: { text: '.show_text_container{width:100%;padding:41px 0px 41px 112px;box-sizing:border-box}.show_text_content{font-size:1em;line-height:1.4em;width:24.7em;white-space:pre-wrap;color:#ffffff}#scroll-up{background-image:url("https://www.gstatic.com/actions/devices_platform/expand-less.png");background-size:48px 48px;color:#FFFFFF;height:48px;width:48px;margin-bottom:24px;display:none}#scroll-up:focus{background-color:#8e4e76}#scroll-down{background-image:url("https://www.gstatic.com/actions/devices_platform/expand-more.png");background-size:48px 48px;color:#FFFFFF;height:48px;width:48px;display:none}#scroll-down:focus{background-color:#8e4e76}.scroll-bar{left:32px;position:absolute;display:flex;flex-direction:column;margin-top:48px}.scroll_active{background-color:#424242}.scroll_inactive{opacity:0.3}\n' + " Sorry, I can't do that on this device.", links: [], photos: [], path: '/home/admin/MagicMirror/modules/MMM-GoogleAssistant/tmp/responseOutput.html', uri: 'tmp/responseOutput.html' }, audio: { path: '/home/admin/MagicMirror/modules/MMM-GoogleAssistant/tmp/lastResponse.mp3', uri: 'tmp/lastResponse.mp3' }, transcription: { transcription: 'play Michael Jackson Thriller on YouTube', done: true }, continue: false, volume: null, lastQuery: { type: 'MIC', key: null, lang: 'en-GB', status: 'standby', chime: true } }
-
hi,
recipe must be in
MMM-GoogleAssistant
and not onEXT-YouTube
like wiki says -
@bugsounet Hi an thanks for the reply.
I modified the new config.js to include the EXT-Alerts module in hopes that will shed some light on the problem.
I also added the recepie in the right place, still the same problem. “Sorry, I cannot do that on this device”.New config.js:
{ "address": "192.168.123.244", "electronOptions": { "webPreferences": { "webviewTag": true } }, "port": 8080, "basePath": "/", "ipWhitelist": [], "zoom": 1, "useHttps": false, "httpsPrivateKey": "", "httpsCertificate": "", "language": "en", "locale": "en-US", "logLevel": [ "INFO", "LOG", "WARN", "ERROR" ], "timeFormat": 24, "units": "metric", "modules": [ { "module": "MMM-pages", "config": { "modules": [ [ "MMM-GoogleAssistant", "Gateway", "EXT-Selfies", "EXT-Detector", "clock", "calendar", "MMM-OpenWeatherMapForecast", "MMM-ImageSlideshow", "newsfeed", "MMM-GoogleTasks", "EXT-YouTube", "EXT-Alert" ], [ "MMM-Screencast" ] ], "fixed": [ "MMM-page-indicator", "MMM-pages" ], "hiddenPages": {}, "rotationTime": 0 } }, { "module": "Gateway", "config": { "debug": true, "username": "***", "password": "***", "CLIENT_ID": "***" } }, { "module": "EXT-Detector", "position": "top_center", "config": { "debug": true, "useIcon": true, "touchOnly": false, "detectors": [ { "detector": "Snowboy", "Model": "jarvis", "Sensitivity": 0.7 } ] } }, { "module": "MMM-GoogleAssistant", "configDeepMerge": true, "config": { "debug": true, "stopCommand": "stop", "assistantConfig": { "lang": "en-GB", "latitude": 46.78158, "longitude": 23.59898, "deviceRegistred": true }, "responseConfig": { "useFullscreen": false, "responseOutputCSS": "response_output.css", "screenOutputTimer": 5000, "useChime": true, "confirmationChime": true, "chimes": { "beep": "beep.mp3", "error": "error.mp3", "continue": "continue.mp3", "confirmation": "confirmation.mp3", "open": "Google_beep_open.mp3", "close": "Google_beep_close.mp3", "warning": "warning.ogg" }, "imgStatus": { "hook": "hook.gif", "standby": "standby.gif", "reply": "reply.gif", "error": "error.gif", "think": "think.gif", "continue": "continue.gif", "listen": "listen.gif", "confirmation": "confirmation.gif", "information": "information.gif", "warning": "warning.gif", "userError": "userError.gif" }, "zoom": { "transcription": "80%", "responseOutput": "60%" } }, "recipes": [ "../../EXT-Selfies/recipe/EXT-Selfies.js", "../../EXT-YouTube/recipe/EXT-YouTube.js" ] } }, { "module": "clock", "position": "top_left", "config": { "displaySeconds": true, "showWeek": true, "showSunTimes": true, "showMoonTimes": true, "lat": 46.78158, "lon": 23.59898 } }, { "module": "calendar", "header": "Our family's calendar", "position": "top_left", "config": { "colored": true, "coloredSymbolOnly": false, "timeFormat": "relative", "getRelative": 24, "calendars": [ { "symbol": "calendar-check", "color": "#F8DD70", "url": "***", "fetchInterval": 60000, "maximumEntries": 3 }, { "symbol": "calendar-check", "color": "#F8DD70", "url": "***", "fetchInterval": 60000, "maximumEntries": 3 } ] } }, { "module": "calendar", "header": "Birthdays", "position": "top_left", "config": { "colored": true, "coloredSymbolOnly": false, "calendars": [ { "symbol": "birthday-cake", "color": "#6FC4F5", "url": "***", "fetchInterval": 61000, "maximumEntries": 3, "timeFormat": "absolute", "dateFormat": "MMM DO HH:mm", "fullDayEventFormat": "MMM HH:mm" } ] } }, { "module": "MMM-GoogleTasks", "header": "Tasks", "position": "top_left", "config": { "maxResults": 2, "listID": "***" } }, { "module": "MMM-Screencast", "position": "bottom_right", "config": { "castName": "MagicMirror", "position": "center", "height": 720, "width": 1080 } }, { "module": "MMM-OpenWeatherMapForecast", "header": "Weather in CLUJ-NAPOCA", "position": "top_right", "classes": "default everyone", "disabled": false, "config": { "apikey": "***", "latitude": "46.78162", "longitude": "23.59898", "iconset": "6oa", "concise": false, "forecastLayout": "tiled" } }, { "module": "newsfeed", "position": "bottom_bar", "config": { "feeds": [ { "title": "PRO-TV News", "url": "http://rss.stirileprotv.ro" }, { "title": "DIGI 24 News", "url": "http://www.digi24.ro/rss" }, { "title": "MediaFax", "url": "https://www.mediafax.ro/rss" }, { "title": "Gandul", "url": "https://www.gandul.ro/feed" }, { "title": "Cotidianul", "url": "https://www.cotidianul.ro/feed/" }, { "title": "Jurnalul National", "url": "https://jurnalul.ro/rss" } ], "showSourceTitle": true, "showPublishDate": true, "broadcastNewsFeeds": true, "broadcastNewsUpdates": true } }, { "module": "MMM-ImageSlideshow", "position": "lower_third", "config": { "imagePaths": [ "modules/MMM-ImageSlideshow/exampleImages" ], "fixedImageWidth": 1080, "fixedImageHeight": 810, "randomizeImageOrder": true } }, { "module": "MMM-page-indicator", "position": "bottom_bar", "config": { "pages": 2 } }, { "module": "EXT-Selfies", "disabled": false, "position": "middle_center", "config": { "debug": true, "captureWidth": 1920, "captureHeight": 1080, "device": "/dev/video0", "usePreview": false, "previewWidth": 1080, "previewHeight": 801, "displayButton": false, "buttonStyle": 1, "buttons": { "1": "master.png", "2": "halloween.png", "3": "birthday.png", "4": "christmas.png" }, "blinkButton": false, "playShutter": true, "resultDuration": 10000, "autoValidate": true, "counterStyle": 0, "showResult": true } }, { "module": "EXT-YouTube", "position": "middle_center", "disabled": false, "config": { "fullscreen": true, "width": "1080px", "height": "720px", "useSearch": true, "alwaysDisplayed": true, "displayHeader": false, "username": "***", "password": "***" } }, { "module": "updatenotification", "position": "top_bar", "config": { "sendUpdatesNotifications": true } }, { "module": "EXT-Updates", "disabled": false, "config": { "debug": true, "autoUpdate": true, "autoRestart": true, "logToConsole": true, "timeout": 120000 } }, { "module": "EXT-Alert", "disabled": false, "config": { "debug": true, "ignore": [] } } ] }
-
try this:
Jarvis... Youtube Michael Jackson Thriller
like this wiki part says
-
Works now! Sorry my bad for not RTFM :(( Sorry to waste your time, and thank you for your help
can be marked as “Solved”
-