Error with Config.



  • 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;}
    
    


  • @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
                }
            },
        ],
    


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


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.