• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Config help please

Scheduled Pinned Locked Moved Solved Troubleshooting
15 Posts 3 Posters 7.6k Views 3 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.
  • S Offline
    strawberry 3.141 Project Sponsor Module Developer @snotrocket
    last edited by Dec 21, 2016, 6:48 PM

    @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 Offline
      snotrocket
      last edited by Dec 21, 2016, 6:52 PM

      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 Offline
        snotrocket
        last edited by Jopyth Jan 25, 2017, 7:50 PM Dec 21, 2016, 7:41 PM

        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;}
        
        S L 2 Replies Last reply Dec 21, 2016, 8:19 PM Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer @snotrocket
          last edited by Dec 21, 2016, 8:19 PM

          @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 Offline
            snotrocket
            last edited by Dec 21, 2016, 8:50 PM

            So set it to an hour or two?

            S 1 Reply Last reply Dec 21, 2016, 8:51 PM Reply Quote 0
            • S Offline
              strawberry 3.141 Project Sponsor Module Developer @snotrocket
              last edited by Dec 21, 2016, 8:51 PM

              @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 Offline
                snotrocket
                last edited by Dec 21, 2016, 8:54 PM

                even better! Thanks.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  snotrocket
                  last edited by Dec 21, 2016, 8:56 PM

                  Can i set the size of the NFL module? in the middle it takes up a huge amount of the screen when it shows all upcoming matches.

                  S 1 Reply Last reply Dec 21, 2016, 8:57 PM Reply Quote 0
                  • S Offline
                    strawberry 3.141 Project Sponsor Module Developer @snotrocket
                    last edited by Dec 21, 2016, 8:57 PM

                    @snotrocket you can either limit with focus_on option the amount of matches displayed or use custom.css to make personal changes to the style

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

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      l8kerjuan @snotrocket
                      last edited by Jan 25, 2017, 6:04 PM

                      @snotrocket any chance you have a photo of what your mirror looks like… as far as layout… havent been able to see a functioning nfl or nhl module up on screen. just curios if i even want to tinker and add to mine… im so close to being done!! thanks

                      S 1 Reply Last reply Jan 25, 2017, 8:15 PM 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 Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy