MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    SOLVED Config help please

    Troubleshooting
    3
    15
    4989
    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.
    • S
      snotrocket last edited by Jopyth

      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;}
      
      strawberry 3.141 1 Reply Last reply Reply Quote 0
      • S
        snotrocket last edited by Jopyth

        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;}
        
        strawberry 3.141 L 2 Replies Last reply Reply Quote 0
        • strawberry 3.141
          strawberry 3.141 Project Sponsor Module Developer @snotrocket last edited by strawberry 3.141

          @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
          		}
          	}
          

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

          1 Reply Last reply Reply Quote 1
          • S
            snotrocket last edited by Jopyth

            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;}
            
            strawberry 3.141 1 Reply Last reply Reply Quote 0
            • strawberry 3.141
              strawberry 3.141 Project Sponsor Module Developer @snotrocket last edited by

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

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

              1 Reply Last reply Reply Quote 1
              • S
                snotrocket last edited by

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

                Fixing now.

                Thanks

                1 Reply Last reply Reply Quote 0
                • S
                  snotrocket last edited by Jopyth

                  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;}
                  
                  strawberry 3.141 L 2 Replies Last reply Reply Quote 0
                  • strawberry 3.141
                    strawberry 3.141 Project Sponsor Module Developer @snotrocket last edited by

                    @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

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

                    1 Reply Last reply Reply Quote 1
                    • S
                      snotrocket last edited by

                      So set it to an hour or two?

                      strawberry 3.141 1 Reply Last reply Reply Quote 0
                      • strawberry 3.141
                        strawberry 3.141 Project Sponsor Module Developer @snotrocket last edited by

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

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

                        1 Reply Last reply Reply Quote 0
                        • S
                          snotrocket last edited by

                          even better! Thanks.

                          1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 1 / 2
                          • First post
                            Last post
                          Enjoying MagicMirror? Please consider a donation!
                          MagicMirror created by Michael Teeuw.
                          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy