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.

    Error with Config.

    Scheduled Pinned Locked Moved Troubleshooting
    3 Posts 2 Posters 1.9k 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.
    • J Offline
      jtyle6
      last edited by

      I have been trying to work out what’s wrong with this dev build.

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       */
      
      var config = {
      	port: 8080,
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
      
      	language: 'en',
      	timeFormat: 24,
      	units: 'metric',
      
      	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-o ',
      						url: '-------s'
      					}
      				]
      			}
      		},
      		{
      			module: 'MMM-Traffic',
          position: 'top_center',
          classes: 'dimmed medium', //optional, default is 'bright medium', only applies to commute info not route_name
          config: {
              api_key: '---',
              mode: 'driving',
              origin: '------',
              destination: '-----',
              arrival_time: '0800', //optional, but needs to be in 24 hour time if used.
              route_name: 'Home to Work',
              changeColor: true,
              showGreen: false,
              limitYellow: 5, //Greater than 5% of journey time due to traffic
              limitRed: 20, //Greater than 20% of journey time due to traffic
              traffic_model: 'pessimistic',
              interval: 120000 //2 minutes
      		},
      },
      		{
      			module: 'currentweather',
      			position: 'top_right',
      			config: {
      				location: 'New York',
      				locationID: '',  //ID from http://www.openweathermap.org
      				appid: '-----'
      			}
      		},
      		{
      			module: 'weatherforecast',
      			position: 'top_right',
      			header: 'Weather Forecast',
      			config: {
      	            location: 'New York',
      				locationID: '5128581',  //ID from http://www.openweathermap.org
      	            appid: '----'
      			}
      		},
      {
      module: 'MMM-SystemStats',
              position: 'bottom_left', // This can be any of the regions.
              classes: 'small dimmed', // Add your own styling. Optional.
              config: {
                  updateInterval: 10000,
                  animationSpeed: 0,
                  //header: 'System Stats', // This is optional
              },
      	],
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== 'undefined') {module.exports = config;}
      
      
      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @jtyle6
        last edited by

        @jtyle6 said in Error with Config.:

        {
        module: ‘MMM-SystemStats’,
        position: ‘bottom_left’, // This can be any of the regions.
        classes: ‘small dimmed’, // Add your own styling. Optional.
        config: {
        updateInterval: 10000,
        animationSpeed: 0,
        //header: ‘System Stats’, // This is optional
        },
        ],

        };

        you missed a } before closing all the modules with ] and closing module systemstats with }

                        animationSpeed: 0,
                        //header: 'System Stats', // This is optional
                    }
                },
            ],
        

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 0
        • J Offline
          jtyle6
          last edited by

          Fixed from a backup. I really need to learn how to code.

          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