Config help please



  • Hello all. Pretty new to this and just love it. Making some mirrors for xmas and just can’t get the config file correct. what am i missing?

    Thanks in advance!

    /* Magic Mirror Config Sample
     *
     * By Michael Teeuw http://michaelteeuw.nl
     * MIT Licensed.
     */
    
    var config = {
    	port: 8080,
    
    	language: 'en',
    	timeFormat: 12,
    	units: 'imperial',
    
    	modules: [
    		{
    			module: 'alert',
    		},
    		{
    			module: 'clock',
    			position: 'top_left'
    		},
    		{
    			module: 'calendar',
    			header: 'US Holidays',
    			position: 'top_left',
    			config: {
    				calendars: [
    					{
    						symbol: 'calendar-check-o ',
    						url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
    					}
    				]
    			}
    		},
    		{
    			module: 'compliments',
    			position: 'lower_third'
    		},
    		{
    			module: 'currentweather',
    			position: 'top_right',
    			config: {
    				location: 'Chicago',
    				locationID: '',  //ID from http://www.openweathermap.org
    				appid: '#########################'
    			}
    		},
    		{
    			module: 'weatherforecast',
    			position: 'top_right',
    			header: 'Weather Forecast',
    			config: {
    				location: 'Chicago',
    				locationID: '',  //ID from http://www.openweathermap.org
    				appid: '##########################'
    			}
    		},
    		{
    			module: 'newsfeed',
    			position: 'bottom_bar',
    			config: {
    				feeds: [
    					{
    						title: "ESPN",
    						url: “http://www.espn.com/espn/rss/news”
    					},
    					{
    						title: “Reuters Sports”,
    						url: “http://feeds.reuters.com/reuters/sportsNews”
    					},
    					{
    						title: "Yahoo NFL"
    					https://sports.yahoo.com/nfl/rss.xml
    					},
    				],
    				showSourceTitle: false,
    				showPublishDate: false
    			}
    		},
    	]
    
    };
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== 'undefined') {module.exports = config;}
    


  • @snotrocket you used the wrong quotes in the newsfeed section and for the last feed you missed to specify url:

    	{
    		module: 'newsfeed',
    		position: 'bottom_bar',
    		config: {
    			feeds: [
    				{
    					title: "ESPN",
    					url: "http://www.espn.com/espn/rss/news"
    				},
    				{
    					title: "Reuters Sports",
    					url: "http://feeds.reuters.com/reuters/sportsNews"
    				},
    				{
    					title: "Yahoo NFL",
                                            url: "https://sports.yahoo.com/nfl/rss.xml"
    				},
    			],
    			showSourceTitle: false,
    			showPublishDate: false
    		}
    	}
    


  • Fixed it. Still a no go.

    Thanks in advance.

    Config:

    /* Magic Mirror Config Sample
     *
     * By Michael Teeuw http://michaelteeuw.nl
     * MIT Licensed.
     */
    
    var config = {
    	port: 8080,
    
    	language: 'en',
    	timeFormat: 12,
    	units: 'imperial',
    
    	modules: [
    		{
    			module: 'alert',
    		},
    		{
    			module: 'clock',
    			position: 'top_left'
    		},
    		{
    			module: 'calendar',
    			header: 'US Holidays',
    			position: 'top_left',
    			config: {
    				calendars: [
    					{
    						symbol: 'calendar-check-o ',
    						url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
    					}
    				]
    			}
    		},
    		{
    			module: 'compliments',
    			position: 'lower_third'
    		},
    		{
    			module: 'currentweather',
    			position: 'top_right',
    			config: {
    				location: 'Chicago',
    				locationID: '',  //ID from http://www.openweathermap.org
    				appid: '#########################'
    			}
    		},
    		{
    			module: 'weatherforecast',
    			position: 'top_right',
    			header: 'Weather Forecast',
    			config: {
    				location: 'Chicago',
    				locationID: '',  //ID from http://www.openweathermap.org
    				appid: '##########################'
    			}
    		},
    		{
    			module: 'newsfeed',
    			position: 'bottom_bar',
    			config: {
    				feeds: [
    					{
    						title: "ESPN",
    						url: “http://www.espn.com/espn/rss/news”
    					},
    					{
    						title: “Reuters Sports”,
    						url: “http://feeds.reuters.com/reuters/sportsNews”
    					},
    					{
    						title: "Yahoo NFL"
    						url: "https://sports.yahoo.com/nfl/rss.xml"
    					},
    				],
    				showSourceTitle: false,
    				showPublishDate: false
    			}
    		},
    	]
    
    };
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== 'undefined') {module.exports = config;}
    


  • @snotrocket you are still using the wrong quotes use " or ' instead of



  • Oooooh. Would the different quotes come from notepad++ or something? I think I edited in that and copied via SSH.

    Fixing now.

    Thanks



  • Yay! It works! I added the NFL module and tweaked the compliments.

    Thank you so much!!! Working code is below.

    /* Magic Mirror Config Sample
     *
     * By Michael Teeuw http://michaelteeuw.nl
     * MIT Licensed.
     */
    
    var config = {
    	port: 8080,
    
    	language: 'en',
    	timeFormat: 12,
    	units: 'imperial',
    
    	modules: [
    		{
    			module: 'alert',
    		},
    		{
    			module: 'clock',
    			position: 'top_left'
    		},
    		{
    			module: 'calendar',
    			header: 'US Holidays',
    			position: 'top_left',
    			config: {
    				calendars: [
    					{
    						symbol: 'calendar-check-o ',
    						url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
    					}
    				]
    			}
    		},
    {
            module: 'compliments',
            position: 'bottom_center',
            config: {
                    updateInterval: 30000,
                    compliments: {
                            morning: [
                            "Good morning!",
    						"Lets go tackle today"
                                            ],
                            afternoon: [
                            "What an awesome day!"
                                            ],
                            evening: [
                                    "Did you do everything you wanted today?",
                                    "Wasn't the day just spectacular?"
                                    ]
                            }
                    }
            },
    		{
    			module: 'currentweather',
    			position: 'top_right',
    			config: {
    				location: 'Chicago',
    				locationID: '',  //ID from http://www.openweathermap.org
    				appid: '#######################'
    			}
    		},
    		{
    			module: 'weatherforecast',
    			position: 'top_right',
    			header: 'Weather Forecast',
    			config: {
    				location: 'Chicago',
    				locationID: '',  //ID from http://www.openweathermap.org
    				appid: '############################'
    			}
    		},
    		{
    			module: 'newsfeed',
    			position: 'bottom_bar',
    			config: {
    				feeds: [
    					{
    						title: "ESPN",
    						url: "http://www.espn.com/espn/rss/news"
    					},
    					{
    						title: "Reuters Sports",
    						url: "http://feeds.reuters.com/reuters/sportsNews"
    					},
    				],
    				showSourceTitle: false,
    				showPublishDate: false
    			}
    		},
    		{
    			module: 'MMM-NFL',
    			position: 'middle_center',
    			config: {
    			colored: true,
    			helmets: true,
    			reloadInterval: 10000,
    			focus_on: ['CHI']
    			
    			}
    		},
    	]
    
    };
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== 'undefined') {module.exports = config;}
    


  • @snotrocket there is no need to let the nfl module reload every 10 seconds, it will detect itself if there is a live match and during live matches it will refresh data more frequently



  • So set it to an hour or two?



  • @snotrocket if you want to use the default of 30mins you can remove it from your config.js completely



  • even better! Thanks.


Log in to reply
 

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