MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Assistant2Display ERROR: YouTube search not set

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 2 Posters 883 Views 2 Watching
    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.
    • E Offline
      Egnos
      last edited by

      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:

      alt text

      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!

      My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

      1 Reply Last reply Reply Quote 0
      • E Offline
        Egnos
        last edited by

        Hi there!
        I found my answers at this link, now everything works:

        YouTube module

        My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by

          that’s why i don’t respond … 99% of response if on wiki :D

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            Egnos @Guest
            last edited by

            @Bugsounet It is not always easy to find the answer to your problems in the midst of 1000 explanations … it takes patience!
            Thanks again @Bugsounet for your work!

            My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy