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.

    config error (edited config)

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 2 Posters 938 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.
    • D Offline
      daltonlupu
      last edited by daltonlupu

      /* 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:
      	address : '0.0.0.0',
      	                      // - "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"
      	port: 8080,
      	//ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
      	ipWhitelist: [], // 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: "en",
      	timeFormat: 12,
      	units: "imperial",
      
      	modules: [
      		{
      			module: "clock",
      			position: "top_center"
      		},
      		{
      			module: "calendar",
      			header: "US Holidays",
      			position: "top_center",
      			config: {
      				calendars: [
      					{
      						symbol: "calendar-check",
      						url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"					}
      				]
      			}
      		},
      		{
          module: 'MMM-Remote-Control'
          // uncomment the following line to show the URL of the remote control on the mirror
           , position: 'bottom_left'
          // you can hide this module afterwards from the remote control itself
          config: {
              customCommand: {},  // Optional, See "Using Custom Commands" below
              customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
              showModuleApiMenu: true, // Optional, Enable the Module Controls menu
              apiKey: "",         // Optional, See API/README.md for details
          }
      },
      		{
      			module: "currentweather",
      			position: "top_center",
      			config: {
      				location: "",
      				locationID: '",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				appid: ""
      			}
      		},
      		{
      			module: "weatherforecast",
      			position: "top_center",
      			header: "Weather Forecast",
      			config: {
      				location: "Gatlinburg",
      				locationID: "",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				appid: ""
      			}
      		},
      		{
      					
      module: 'MMM-NowPlayingOnSpotify',
      					  position: 'top_center',
      		
      					  config: {
      					    clientID: '',
      					    clientSecret: '',
      					    accessToken: '',
      					    refreshToken: 
      					}
      		},
      	]
      
      };
      
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      
      
      1 Reply Last reply Reply Quote 0
      • buzzkcB Offline
        buzzkc
        last edited by

        You’re missing comma after position: ‘bottom_left’ on MMM-RemoteControl.

        Can run the following from your MagicMirror root folder to check your config:

        npm run config:check
        

        Darren

        My Build: https://forum.magicmirror.builders/topic/11153/new-non-mirror

        D 2 Replies Last reply Reply Quote 2
        • D Offline
          daltonlupu @buzzkc
          last edited by

          @buzzkc okay I’ll try that later and let you know what happens, thank you!

          1 Reply Last reply Reply Quote 0
          • D Offline
            daltonlupu @buzzkc
            last edited by

            @buzzkc it worked thanks man, a comma can change everything

            1 Reply Last reply Reply Quote 0
            • buzzkcB Offline
              buzzkc
              last edited by

              No worries, glad I could help. :-)

              Darren

              My Build: https://forum.magicmirror.builders/topic/11153/new-non-mirror

              1 Reply Last reply Reply Quote 0
              • 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