MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

New module breaks magicmirror



  • When I follow the installation process for any of the modules on https://github.com/MichMich/MagicMirror/wiki/3rd-party-modules, and add the data to the config.js file, when I save, it has the error of “you need a config file”.
    I’m new to this so is there something simple I’m doing wrong?

    thanks,



  • I’ve removed the text from the top on this forum, not in the file, and blocked out appID’s or API’s or any of those.
    It works fine with the default ones, but as soon as I add a new module, like MMM-LocalTransport I get the ‘Please Create a Config File’ error
    I follow the installation guides and install dependencies…

    	modules: [
    		{
    			module: "alert",
    		},
    		{
    			module: "updatenotification",
    			position: "top_bar"
    		},
    		{
    			module: "clock",
    			position: "top_left"
    		},
    		{
    			module: "calendar",
    			header: "Schedule",
    			position: "top_left",
    			config: {
    				colored: true,
    				fadePoint: 0.75,
    				calendars: [
    					{
    						url: 'webcal://********************************',
    						symbol: 'calendar'
    					},
    					{
    						url: "webcal://********************************",
    						symbol: "facebook-square",
    						color: "#3b5998"
    					},
    					],
    			}
    		},
    {
    			module: 'MMM-LocalTransport',
    			position: 'bottom_left',
    		  	config: {
    		    		api_key: '********************************',
    		    		origin: 'Mortlake, London',
    		    		destination: ‘Kingston, London'
    		  	}
    		},
    //		{
    //			module: "compliments",
    //			position: "lower_third"
    //			config: {
    //				compliments: {
    //						anytime: [
    //							"Lookin' fresh!"
    //						],
    //						morning: [
    //							"wa"
    //						],
    //			}
    //		},
    {
    			module: "currentweather",
    			position: "top_right",
    			config: {
    				location: "Marlborough",
    				locationID: "2643010",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: "********************************"
    			}
    		},
    		{
    			module: "weatherforecast",
    			position: "top_right",
    			header: "Weather Forecast",
    			config: {
    				location: "New York",
    				locationID: "2643010",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: "********************************"
    			}
    		},
    		{
    			module: "newsfeed",
    			position: "bottom_bar",
    			config: {
    				feeds: [
    					{
    						title: "BBC News",
    						url: "http://feeds.bbci.co.uk/news/rss.xml"
    					}
    				],
    				showSourceTitle: true,
    				showPublishDate: true
    			}
    		},
    		
    	]
    
    };
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== "undefined") {module.exports = config;}
    
    

    Thank you for helping, much appreciated,



  • The format of the config file is important. You’re probably missing a comma or something simple. Post your file (remove any sensitive info) and someone here will be able to help.


  • Project Sponsor Module Developer



  • I’ve removed the text from the top on this forum, not in the file, and blocked out appID’s or API’s or any of those.
    It works fine with the default ones, but as soon as I add a new module, like MMM-LocalTransport I get the ‘Please Create a Config File’ error
    I follow the installation guides and install dependencies…

    	modules: [
    		{
    			module: "alert",
    		},
    		{
    			module: "updatenotification",
    			position: "top_bar"
    		},
    		{
    			module: "clock",
    			position: "top_left"
    		},
    		{
    			module: "calendar",
    			header: "Schedule",
    			position: "top_left",
    			config: {
    				colored: true,
    				fadePoint: 0.75,
    				calendars: [
    					{
    						url: 'webcal://********************************',
    						symbol: 'calendar'
    					},
    					{
    						url: "webcal://********************************",
    						symbol: "facebook-square",
    						color: "#3b5998"
    					},
    					],
    			}
    		},
    {
    			module: 'MMM-LocalTransport',
    			position: 'bottom_left',
    		  	config: {
    		    		api_key: '********************************',
    		    		origin: 'Mortlake, London',
    		    		destination: ‘Kingston, London'
    		  	}
    		},
    //		{
    //			module: "compliments",
    //			position: "lower_third"
    //			config: {
    //				compliments: {
    //						anytime: [
    //							"Lookin' fresh!"
    //						],
    //						morning: [
    //							"wa"
    //						],
    //			}
    //		},
    {
    			module: "currentweather",
    			position: "top_right",
    			config: {
    				location: "Marlborough",
    				locationID: "2643010",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: "********************************"
    			}
    		},
    		{
    			module: "weatherforecast",
    			position: "top_right",
    			header: "Weather Forecast",
    			config: {
    				location: "New York",
    				locationID: "2643010",  //ID from http://www.openweathermap.org/help/city_list.txt
    				appid: "********************************"
    			}
    		},
    		{
    			module: "newsfeed",
    			position: "bottom_bar",
    			config: {
    				feeds: [
    					{
    						title: "BBC News",
    						url: "http://feeds.bbci.co.uk/news/rss.xml"
    					}
    				],
    				showSourceTitle: true,
    				showPublishDate: true
    			}
    		},
    		
    	]
    
    };
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== "undefined") {module.exports = config;}
    
    

    Thank you for helping, much appreciated,


  • Moderator

    @tomamer
    Look at this line: destination: ‘Kingston, London'

    There is a wrong apostrophe before Kingston



  • @mykle1 Followed your tutorial and works fine, when I copy and paste the code from other modules it doesn’t work.

    For instance, adding

    {
                module: 'MMM-CountDown',
                config: {
                    event: "New Millenium",
                    date: "3000-01-01"
                }
            }
    

    as per https://github.com/boazarad/MMM-CountDown breaks it



  • @yawns oh great spot!
    edited that and fixed it
    thanks,



  • @yawns @Mykle1 thanks for the help, just needed to understand the correct layout, now understanding all working,

    thanks, Tom


  • Moderator

    @tomamer
    Great, we all were at this point. Enjoy your mirror


  • Project Sponsor Module Developer

    @yawns said in New module breaks magicmirror:

    Great, we all were at this point. Enjoy your mirror

    Amen to that brother! 🙂

    @tomamer

    Enjoy your mirror. 🙂


Log in to reply