Hi,
to start I would like to thank @bugsounet very much for the excellent work on MMM-GoogleAssistant and MMM-Assistant2Display.
For the MMM-Assistant2Display module I have some problems: I followed the guide but I can’t understand why when I activate
useYouTube: true,
in MMM-GoogleAssistant I get this result:

I attach MM output:
pi@MagicMirror:~/MagicMirror $ npm start
> magicmirror@2.10.1 start /home/pi/MagicMirror
> ./run-start.sh
[04:43:47.926] [LOG] Starting MagicMirror: v2.10.1
[04:43:47.938] [LOG] Loading config ...
[04:43:47.951] [LOG] Loading module helpers ...
[04:43:47.955] [LOG] No helper found for module: alert.
[04:43:48.060] [LOG] Initializing new module helper ...
[04:43:48.061] [LOG] Module helper loaded: updatenotification
[04:43:48.062] [LOG] No helper found for module: clock.
[04:43:48.709] [LOG] Initializing new module helper ...
[04:43:48.711] [LOG] Module helper loaded: calendar
[04:43:48.712] [LOG] No helper found for module: compliments.
[04:43:48.713] [LOG] No helper found for module: currentweather.
[04:43:48.714] [LOG] No helper found for module: weatherforecast.
[04:43:53.313] [LOG] Initializing new module helper ...
[04:43:53.315] [LOG] Module helper loaded: MMM-GoogleAssistant
[04:43:55.358] [LOG] Initializing new module helper ...
[04:43:55.359] [LOG] Module helper loaded: MMM-Assistant2Display
[04:43:55.402] [LOG] Initializing new module helper ...
[04:43:55.403] [LOG] Module helper loaded: newsfeed
[04:43:55.404] [LOG] All module helpers loaded.
[04:43:55.405] [LOG] Starting server on port 8080 ...
[04:43:55.431] [LOG] Server started ...
[04:43:55.434] [LOG] Connecting socket for: updatenotification
[04:43:55.437] [LOG] Connecting socket for: calendar
[04:43:55.439] [LOG] Starting node helper for: calendar
[04:43:55.442] [LOG] Connecting socket for: MMM-GoogleAssistant
[04:43:55.446] [LOG] Connecting socket for: MMM-Assistant2Display
[04:43:55.449] [LOG] Connecting socket for: newsfeed
[04:43:55.453] [LOG] Starting module: newsfeed
[04:43:55.456] [LOG] Sockets connected & modules started ...
[04:43:55.777] [LOG] Launching application.
[04:43:59.127] [LOG] Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
[04:43:59.218] [LOG] Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[04:43:59.483] [LOG] [ASSISTANT] MMM-GoogleAssistant Version: 2.4.15
[04:43:59.488] [LOG] [ASSISTANT] Error: ENOENT: no such file or directory, open '/home/pi/MagicMirror/modules/MMM-GoogleAssistant/tokenYT.json'
[04:43:59.489] [LOG] [ASSISTANT][ERROR] YouTube Search not Set !
[04:43:59.494] [LOG] [A2D] MMM-Assistant2Display Version: 2.3.20
[04:43:59.499] [LOG] [NPM] Initialized v0.9.9
[04:43:59.808] [LOG] [A2D] Assistant2Display is initialized.
[04:44:00.043] [LOG] Whoops! There was an uncaught exception...
[04:44:00.045] [ERROR] TypeError: Cannot read property 'play' of undefined
at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_helper.js:1:1251)
at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:113:11)
at Socket.emit (events.js:200:13)
at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12
at processTicksAndRejections (internal/process/task_queues.js:82:9)
[04:44:00.062] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[04:44:00.067] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
…and my config.js:
/* Magic Mirror Config Sample
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*
* For more information how you can configurate this file
* See https://github.com/MichMich/MagicMirror#configuration
*
*/
var config = {
address: "localhost", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "", "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out, is "localhost"
electronOptions: {
webPreferences: {
webviewTag: true
}
},
port: 8080,
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"],
language: "it",
timeFormat: 24,
units: "metric",
// 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
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
{
module: "calendar",
header: "US Holidays",
position: "top_left",
config: {
calendars: [
{
symbol: "calendar-check",
url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics" }
]
}
},
{
module: "compliments",
position: "lower_third"
},
{
module: "currentweather",
position: "top_right",
config: {
location: "New York",
locationID: "", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
appid: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "weatherforecast",
position: "top_right",
header: "Weather Forecast",
config: {
location: "New York",
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
appid: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "MMM-GoogleAssistant",
position: "fullscreen_above",
config: {
assistantConfig: {
lang: "it-IT",
latitude: 45.0727229,
longitude: 7.556571,
},
responseConfig: {
useScreenOutput: true,
screenOutputCSS: "screen_output.css",
screenOutputTimer: 5000,
screenRotate: false,
activateDelay: 250,
useAudioOutput: true,
useChime: true,
newChime: false,
useNative: true,
//playProgram: "mpg321"
},
A2DServer: {
useA2D:true,
stopCommand: "stop",
useYouTube: true,
youtubeCommand: "youtube"
},
micConfig: {
recorder: "arecord",
device: "plughw:3"
},
}
},
{
module: "MMM-Assistant2Display",
position: "top_left",
config: {
debug:false,
useYoutube: true,
links: {
useLinks: false,
displayDelay: 60 * 1000,
scrollStep: 25,
scrollInterval: 1000,
scrollStart: 5000,
scrollActivate: false,
verbose: false
},
}
},
{
module: "newsfeed",
position: "bottom_bar",
config: {
feeds: [
{
title: "New York Times",
url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
}
],
showSourceTitle: true,
showPublishDate: true,
broadcastNewsFeeds: true,
broadcastNewsUpdates: true
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
What am I doing wrong?
Can you help me?
Thanks and happy new year!