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

Removing modules

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 3 Posters 7.8k 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.
  • K Offline
    killerwaffles
    last edited by Oct 13, 2016, 3:27 PM

    Hello, i am very new to programming so i apologize in advance for asking repetitive/ dumb questions. I am wanting to remove the " US Holidays module from the screen but i am not exactly sure how to do it. Could someone please explain in detail how it can be done. I tried to delete the module in the config.js file but it seems to just blank the whole screen. Thanks for your help.

    A 1 Reply Last reply Oct 13, 2016, 3:34 PM Reply Quote 0
    • A Offline
      andrewchumchal @killerwaffles
      last edited by Oct 13, 2016, 3:34 PM

      Hello @killerwaffles

      I will be glad to help you. If you look in your config file for this section

      		{
      			module: 'calendar',
      			header: 'US Holidays',
      			position: 'top_left',
      			config: {
      				calendars: [
      					{
      						symbol: 'calendar-check-o ',
                                                      url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
      					}
      				]
      			}
      		},
      

      All you have to do is to remove these lines of code

      					{
      						symbol: 'calendar-check-o ',
      						url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
      					}
      

      That should get ride of the us holidays calendar.

      1 Reply Last reply Reply Quote 0
      • Y Offline
        yawns Moderator
        last edited by Oct 13, 2016, 3:37 PM

        You need to remove or comment the whole block of the module. In your case I marked all lines with //
        Otherwise parsing of the config file will fail because of missing brackets or commas

        /* 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: '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: 'New York',
        				locationID: '',  //ID from http://www.openweathermap.org
        				appid: 'YOUR_OPENWEATHER_API_KEY'
        			}
        		},
        		{
        			module: 'weatherforecast',
        			position: 'top_right',
        			header: 'Weather Forecast',
        			config: {
        				location: 'New York',
        				locationID: '5128581',  //ID from http://www.openweathermap.org
        				appid: 'YOUR_OPENWEATHER_API_KEY'
        			}
        		},
        		{
        			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;}
        
        1 Reply Last reply Reply Quote 0
        • K Offline
          killerwaffles
          last edited by Oct 13, 2016, 3:47 PM

          When i tried to just remove those lines of code, the “US Holiday” text still showed but it removed everything else. Using the // in front of the module completely removed it from the screen. Thank you all for your help.

          Y 1 Reply Last reply Oct 13, 2016, 3:49 PM Reply Quote 1
          • Y Offline
            yawns Moderator @killerwaffles
            last edited by Oct 13, 2016, 3:49 PM

            @killerwaffles
            You are welcome.
            You could as well remove all lines of code you just commented out with //

            1 Reply Last reply Reply Quote 0
            • K Offline
              killerwaffles
              last edited by Oct 13, 2016, 3:51 PM

              I actually tried that originally but the main MagicMirror screen popped up and it says “Please create a config file” which was a bit confusing.

              1 Reply Last reply Reply Quote 0
              • A Offline
                andrewchumchal
                last edited by Oct 13, 2016, 3:51 PM

                @killerwaffles If you were talking about the header not the calendar it self header: 'US Holidays', you could just change this part here. to say something like header: 'Events,

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