Bugsounet Coding

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

    npm run raspotify extented display is not defined in config.js

    Issues
    4
    11
    160
    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.
    • V
      venoivixx last edited by venoivixx

      Hi!

      And thank you for this amazing module for the MagicMirror.
      I am currently trying to install raspotify with npm run raspotify as suggested in the wiki but it keeps giving me the error:

      Raspotify Configuration...
      Read config.js and check MMM-GoogleAssistant module Configuration...
      
      Fatal: Extented display is not defined in config.js (Extented: [])
      

      My Extented settings in config.js looks like this:

      			  Extented: {
      			    useEXT: true,
      			    deviceName: "MagicMirror",
      			    stopCommand: "stop",
      			    spotify: {
      			      useSpotify: true,
      				},
      

      Anything I may have missed from the wiki? Error suggest [] which wiki doesnt mention.

      Using latest v3.0.0 of MMM-GoogleAssistant.

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        hi,
        can I see more config (since start) and naturaly delete any personal information

        1 Reply Last reply Reply Quote 0
        • V
          venoivixx last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            I have detected many error on your config.
            verify bracket

            -> try to use template and past any needed part correctly inside

            1 Reply Last reply Reply Quote 0
            • V
              venoivixx last edited by

              Oh ok! Sorry to bother you with something as easy as a configuration error.

              But!
              npm run config:check gives no errors

              and the config code was made from the configuration template and I pasted code from the wiki inside

              I’m not very experienced in json
              If there is an error, or multiple could you give me an example so I can correct it please?

              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by

                try and past it there 🙂

                After i will see and correct

                V 1 Reply Last reply Reply Quote 0
                • V
                  venoivixx @bugsounet last edited by

                  @bugsounet said in npm run raspotify extented display is not defined in config.js:

                  try and past it there 🙂

                  After i will see and correct

                  /* Magic Mirror Config Sample
                   *
                   * By Michael Teeuw https://michaelteeuw.nl
                   * MIT Licensed.
                   *
                   * For more information on how you can configure this file
                   * See https://github.com/MichMich/MagicMirror#configuration
                   *
                   */
                  
                  var config = {
                  	address: "localhost",
                  	electronOptions: {
                  	  webPreferences: {
                  	    webviewTag: true
                  	  }
                  	},
                  	port: 8080,
                  	basePath: "/", 	// The URL path where MagicMirror is hosted. If you are using a Reverse proxy
                  					// you must set the sub path here. basePath must end with a /
                  	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"],
                  
                  	useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
                  	httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
                  	httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true
                  
                  	language: "sv",
                  	locale: "sv",
                  	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
                  	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: "Kalender",
                  			position: "top_left",
                  			config: {
                  				calendars: [
                  					{
                  						symbol: "calendar-check",
                  						url: "censored"					}
                  				]
                  			}
                  		},
                  		{
                  			module: 'MMM-Cursor',
                  			config: {
                  				// See 'Configuration options' for more information.
                  			}
                  		},
                  		{
                  			module: "compliments",
                  			position: "top_bar"
                  		},
                  		{
                  			module: "weather",
                  			position: "top_right",
                  			config: {
                  				weatherProvider: "openweathermap",
                  				type: "current",
                  				location: "Censored",
                  				locationID: "Censored", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                  				apiKey: "Censored"
                  			}
                  		},
                  		{
                  			module: "weather",
                  			position: "top_right",
                  			header: "Väderlek - ",
                  			config: {
                  				weatherProvider: "openweathermap",
                  				type: "forecast",
                  				location: "Censored",
                  				locationID: "Censored, //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                  				apiKey: "Censored"
                  			}
                  		},
                  		{
                  			module: "newsfeed",
                  			position: "bottom_bar",
                  			config: {
                  				feeds: [
                  					{
                  						title: "SVT nyheter",
                  						url: "https://www.svt.se/nyheter/rss.xml"
                  					}
                  				],
                  				showSourceTitle: true,
                  				showPublishDate: true,
                  				broadcastNewsFeeds: true,
                  				broadcastNewsUpdates: true
                  			}
                  		},
                  		{
                  			module: "MMM-GoogleAssistant",
                  			position: "top_left",
                  			configDeepMerge: true,
                  			config: {
                  			  debug: false,
                  			  assistantConfig: {
                  			    lang: "en-US",
                  			    latitude: 57.42650,
                  			    longitude: 15.08252,
                  			    },
                  			  responseConfig: {
                  			    useFullscreen: false,
                  			    useResponseOutput: true,
                  			    responseOutputCSS: "response_output.css",
                  			    screenOutputTimer: 5000,
                  			    activateDelay: 250,
                  			    useAudioOutput: true,
                  			    useChime: true,
                  			    confirmationChime: true,
                  			    useInformations: 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%"}
                  			  },
                  			  micConfig: {
                  			    recorder: "arecord",
                  			    device: "default"
                  			    },
                  			  Extented: {
                  			    useEXT: true,
                  			    deviceName: "MagicMirror",
                  			    stopCommand: "stop",
                  			    youtube: {
                  			      useYoutube: false,
                  			      youtubeCommand: "youtube",
                  			      displayResponse: true,
                  			      useVLC: false,
                  			      minVolume: 30,
                  			      maxVolume: 100
                  			      },
                  			    links: {
                  			      useLinks: false,
                  			      displayDelay: 60 * 1000,
                  			      scrollActivate: false,
                  			      scrollStep: 25,
                  			      scrollInterval: 1000,
                  			      scrollStart: 5000
                  			      },
                  			    photos: {
                  			      usePhotos: false,
                  			      useGooglePhotosAPI: false,
                  			      displayType: "none",
                  			      displayDelay: 10 * 1000,
                  			      albums: [],
                  			      sort: "new",
                  			      hiResolution: true,
                  			      timeFormat: "DD/MM/YYYY HH:mm",
                  			      moduleHeight: 300,
                  			      moduleWidth: 300,
                  			      },
                  			    volume: {
                  			      useVolume: false,
                  			      volumePreset: "PULSE",
                  			      myScript: null
                  			      },
                  			    welcome: {
                  			      useWelcome: false,
                  			      welcome: "brief today"
                  			      },
                  			    screen: {
                  			      useScreen: false,
                  			      animateBody: true,
                  			      delay: 5 * 60 * 1000,
                  			      turnOffDisplay: true,
                  			      mode: 1,
                  			      ecoMode: true,
                  			      delayed: 0,
                  			      displayCounter: true,
                  			      displayBar: true,
                  			      displayStyle: "Text",
                  			      detectorSleeping: false,
                  			      governorSleeping: false,
                  			      displayLastPresence: true
                  			      },
                  			    touch: {
                  			      useTouch: false,
                  			      mode: 2
                  			      },
                  			    pir: {},
                  			    governor: {},
                  			    internet: {},
                  			    cast: {
                  			      useCast: true,
                  			      port: 8569
                  			      },
                  			    spotify: {
                  			      useSpotify: true,
                  			      visual: {          
                  				updateInterval: 1000,
                  				idleInterval: 10000,
                  				useBottomBar: false,
                  				CLIENT_ID: "Censored",
                  				CLIENT_SECRET: "Censored",
                  				},
                  			      player: {
                  				type: "Raspotify",
                  				email: "Censored",
                  				password: "Censored",
                  				minVolume: 10,
                  				maxVolume: 90,
                  				usePause: true
                  				},
                  			      search: {}
                  			    },
                  			  },
                  			  recipes: ["ExtSpotify.js", "ExtGPhotos.js","Reboot-Restart-Shutdown.js","ScreenManager.js","with-MMM-Memo.js"],
                  			  NPMCheck: {      
                  			    useChecker: true,
                  			    delay: 10 * 60 * 1000,
                  			    useAlert: true
                  			    },
                  			},
                  			{
                  			module: 'MMM-Snowboy',
                  			configDeepMerge: true,
                  			config: {
                  			  debug: false,
                  			  autoStart: true,
                  			  micConfig: {
                  			    recorder: "arecord",
                  			    device: "default",
                  			    audioGain: 2.0,
                  			    applyFrontend: true,
                  			  },
                  			  detectors: [
                  			    {
                  			      Model: "alexa",
                  			      Sensitivity: null,
                  			      onDetected: {
                  				notification: "ALEXA_ACTIVATE",
                  				parameters: null
                  			      }
                  			    },
                  			    {
                  			      Model: "jarvis",
                  			      Sensitivity: null,
                  			      onDetected: {
                  				notification: "GA_ACTIVATE",
                  				parameters: null
                  			      }
                  			    }
                  			  ]
                  			}
                  		      },
                  		
                  	]
                  };
                  
                  /*************** DO NOT EDIT THE LINE BELOW ***************/
                  if (typeof module !== "undefined") {module.exports = config;}
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • bugsounet
                    bugsounet Main Coder last edited by

                    sorry, wait… i’m on phone ;))))

                    1 Reply Last reply Reply Quote 0
                    • bugsounet
                      bugsounet Main Coder last edited by bugsounet

                      sorry again, always there ?

                      I will do a video in live for learning 😉 and correct your config

                      but for this: I need some infos.

                      What modules do you want to use ?

                      give me the list 🙂

                      and I start the live (sure I will give the link)

                      1 Reply Last reply Reply Quote 0
                      • V
                        venoivixx last edited by

                        Sorry for not responding!
                        I dug my head down into solving it when you didn’t answer for a while.

                        I ended up remaking the whole MMM-GoogleAssistant part of the config.js file, I kept it as barebone as possible and only added the things I needed.
                        Now it’s working just fine, so I gave up on my “add all options for easy manipulation for future” thinking.

                        An example file of all the options added on the wiki would be great if you feel the need for it!

                        Thank you for your fast responses and help.

                        1 Reply Last reply Reply Quote 0
                        • bugsounet
                          bugsounet Main Coder last edited by

                          I will explain all…
                          See there

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