• 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.js issues

Scheduled Pinned Locked Moved Troubleshooting
error
9 Posts 3 Posters 5.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.
  • C Offline
    cowboysdude Module Developer
    last edited by cowboysdude Feb 5, 2017, 3:56 PM Feb 5, 2017, 3:54 PM

    This is also wrong:

    {
    						title: "New York Times",
    						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
    					},	//
    

    Take out the // it’s negating the next bracket…

    /* Magic Mirror Config Sample
     *
     * By Michael Teeuw http://michaelteeuw.nl
     * MIT Licensed.
     */
    var config = {
            port: 8080,
    
            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: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
                            }]
                        }
                    },
                    {
                        module: 'compliments',
                        position: 'lower_third'
                    },
                    {
                        module: 'currentweather',
                        position: 'top_right',
                        config: {
                            location: 'Bolton',
                            locationID: '2655237'
                        }
                    },
                    {
                        module: 'weatherforecast',
                        position: 'top_right',
                        header: 'Weather Forecast',
                        config: {
                            location: 'Bolton',
                            locationID: '2655237'
                            ``
                            `
    			}
    		},
    		{
    			module: 'newsfeed',
    			position: 'bottom_bar',
    			config: {
    				feeds: [
    					{
    						title: "New York Times",
    						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
    					},	
    				],
    				showSourceTitle: true,
    				showPublishDate: true
    			}
    		}
    	]
    
    };
    
    M 1 Reply Last reply Feb 6, 2017, 6:23 PM Reply Quote 0
    • M Offline
      MatthewCowell @cowboysdude
      last edited by Feb 6, 2017, 6:23 PM

      @cowboysdude Still not working. Thank you for the help!

      1 Reply Last reply Reply Quote 1
      • C Offline
        cowboysdude Module Developer
        last edited by cowboysdude Feb 6, 2017, 8:56 PM Feb 6, 2017, 8:55 PM

        Try this: the last one I took out the // but didn’t take out the extra ‘’ strawberry suggested you take out… this one should be working.

        /* 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: 12,
        	units: 'imperial',
        
        	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: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
                                }]
                            }
                        },
                        {
                            module: 'compliments',
                            position: 'lower_third'
                        },
                         {
                            module: 'weatherforecast',
                            position: 'top_right',
                            header: 'Weather Forecast',
                            config: {
                                location: 'Bolton',
                                locationID: '2655237'
        			}
        		},
                        {
                            module: 'currentweather',
                            position: 'top_right',
                            config: {
                                location: 'Bolton',
                                locationID: '2655237'
                            }
                        },
                        {
        			module: 'newsfeed',
        			position: 'bottom_bar',
        			config: {
        				feeds: [
        					{
        						title: "New York Times",
        						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
        					},	
        				],
        				showSourceTitle: true,
        				showPublishDate: true
        			}
        		},
        		
        	]
        
        };
        
        /*************** DO NOT EDIT THE LINE BELOW ***************/
        if (typeof module !== 'undefined') {module.exports = config;}
        
        
        M 1 Reply Last reply Feb 11, 2017, 11:48 AM Reply Quote 0
        • M Offline
          MatthewCowell @cowboysdude
          last edited by Feb 11, 2017, 11:48 AM

          @cowboysdude I still can’t get it to work. Ill try reinstalling NOOBS and magicmirror and see if it gets any better

          C 1 Reply Last reply Feb 11, 2017, 4:04 PM Reply Quote 0
          • C Offline
            cowboysdude Module Developer @MatthewCowell
            last edited by cowboysdude Feb 11, 2017, 4:06 PM Feb 11, 2017, 4:04 PM

            @MatthewCowell I ran it through a validator and it said no issues and I can’t find any …

            Why are you using Noobs? I would install this:

            https://www.raspberrypi.org/downloads/raspbian/

            When you restart copy your sample config js file to config.js and just make sure it starts…

            Once you do that do not delete your sample config file as that is your temp backup…

            Once you get it working and you add a module and it works then back up your config.js to something like config.bak that way you always have a working backup…

            in terminal window:

            cd ~MagicMirror/config
            then
            cp config.js config.bak

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              9/9
              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