Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED New module breaks magicmirror

    Troubleshooting
    4
    10
    2018
    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.
    • T
      tomamer last edited by

      When I follow the installation process for any of the modules on https://github.com/MichMich/MagicMirror/wiki/3rd-party-modules, and add the data to the config.js file, when I save, it has the error of “you need a config file”.
      I’m new to this so is there something simple I’m doing wrong?

      thanks,

      Mykle1 1 Reply Last reply Reply Quote 0
      • T
        tomamer last edited by tomamer

        I’ve removed the text from the top on this forum, not in the file, and blocked out appID’s or API’s or any of those.
        It works fine with the default ones, but as soon as I add a new module, like MMM-LocalTransport I get the ‘Please Create a Config File’ error
        I follow the installation guides and install dependencies…

        	modules: [
        		{
        			module: "alert",
        		},
        		{
        			module: "updatenotification",
        			position: "top_bar"
        		},
        		{
        			module: "clock",
        			position: "top_left"
        		},
        		{
        			module: "calendar",
        			header: "Schedule",
        			position: "top_left",
        			config: {
        				colored: true,
        				fadePoint: 0.75,
        				calendars: [
        					{
        						url: 'webcal://********************************',
        						symbol: 'calendar'
        					},
        					{
        						url: "webcal://********************************",
        						symbol: "facebook-square",
        						color: "#3b5998"
        					},
        					],
        			}
        		},
        {
        			module: 'MMM-LocalTransport',
        			position: 'bottom_left',
        		  	config: {
        		    		api_key: '********************************',
        		    		origin: 'Mortlake, London',
        		    		destination: ‘Kingston, London'
        		  	}
        		},
        //		{
        //			module: "compliments",
        //			position: "lower_third"
        //			config: {
        //				compliments: {
        //						anytime: [
        //							"Lookin' fresh!"
        //						],
        //						morning: [
        //							"wa"
        //						],
        //			}
        //		},
        {
        			module: "currentweather",
        			position: "top_right",
        			config: {
        				location: "Marlborough",
        				locationID: "2643010",  //ID from http://www.openweathermap.org/help/city_list.txt
        				appid: "********************************"
        			}
        		},
        		{
        			module: "weatherforecast",
        			position: "top_right",
        			header: "Weather Forecast",
        			config: {
        				location: "New York",
        				locationID: "2643010",  //ID from http://www.openweathermap.org/help/city_list.txt
        				appid: "********************************"
        			}
        		},
        		{
        			module: "newsfeed",
        			position: "bottom_bar",
        			config: {
        				feeds: [
        					{
        						title: "BBC News",
        						url: "http://feeds.bbci.co.uk/news/rss.xml"
        					}
        				],
        				showSourceTitle: true,
        				showPublishDate: true
        			}
        		},
        		
        	]
        
        };
        
        /*************** DO NOT EDIT THE LINE BELOW ***************/
        if (typeof module !== "undefined") {module.exports = config;}
        
        

        Thank you for helping, much appreciated,

        yawns 1 Reply Last reply Reply Quote 0
        • S
          sharmstr last edited by

          The format of the config file is important. You’re probably missing a comma or something simple. Post your file (remove any sensitive info) and someone here will be able to help.

          1 Reply Last reply Reply Quote 0
          • Mykle1
            Mykle1 Project Sponsor Module Developer @tomamer last edited by

            @tomamer

            How to add modules!

            https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners

            T 1 Reply Last reply Reply Quote 2
            • T
              tomamer last edited by tomamer

              I’ve removed the text from the top on this forum, not in the file, and blocked out appID’s or API’s or any of those.
              It works fine with the default ones, but as soon as I add a new module, like MMM-LocalTransport I get the ‘Please Create a Config File’ error
              I follow the installation guides and install dependencies…

              	modules: [
              		{
              			module: "alert",
              		},
              		{
              			module: "updatenotification",
              			position: "top_bar"
              		},
              		{
              			module: "clock",
              			position: "top_left"
              		},
              		{
              			module: "calendar",
              			header: "Schedule",
              			position: "top_left",
              			config: {
              				colored: true,
              				fadePoint: 0.75,
              				calendars: [
              					{
              						url: 'webcal://********************************',
              						symbol: 'calendar'
              					},
              					{
              						url: "webcal://********************************",
              						symbol: "facebook-square",
              						color: "#3b5998"
              					},
              					],
              			}
              		},
              {
              			module: 'MMM-LocalTransport',
              			position: 'bottom_left',
              		  	config: {
              		    		api_key: '********************************',
              		    		origin: 'Mortlake, London',
              		    		destination: ‘Kingston, London'
              		  	}
              		},
              //		{
              //			module: "compliments",
              //			position: "lower_third"
              //			config: {
              //				compliments: {
              //						anytime: [
              //							"Lookin' fresh!"
              //						],
              //						morning: [
              //							"wa"
              //						],
              //			}
              //		},
              {
              			module: "currentweather",
              			position: "top_right",
              			config: {
              				location: "Marlborough",
              				locationID: "2643010",  //ID from http://www.openweathermap.org/help/city_list.txt
              				appid: "********************************"
              			}
              		},
              		{
              			module: "weatherforecast",
              			position: "top_right",
              			header: "Weather Forecast",
              			config: {
              				location: "New York",
              				locationID: "2643010",  //ID from http://www.openweathermap.org/help/city_list.txt
              				appid: "********************************"
              			}
              		},
              		{
              			module: "newsfeed",
              			position: "bottom_bar",
              			config: {
              				feeds: [
              					{
              						title: "BBC News",
              						url: "http://feeds.bbci.co.uk/news/rss.xml"
              					}
              				],
              				showSourceTitle: true,
              				showPublishDate: true
              			}
              		},
              		
              	]
              
              };
              
              /*************** DO NOT EDIT THE LINE BELOW ***************/
              if (typeof module !== "undefined") {module.exports = config;}
              
              

              Thank you for helping, much appreciated,

              yawns 1 Reply Last reply Reply Quote 0
              • yawns
                yawns Moderator @tomamer last edited by

                @tomamer
                Look at this line: destination: ‘Kingston, London'

                There is a wrong apostrophe before Kingston

                T 1 Reply Last reply Reply Quote 2
                • T
                  tomamer @Mykle1 last edited by

                  @mykle1 Followed your tutorial and works fine, when I copy and paste the code from other modules it doesn’t work.

                  For instance, adding

                  {
                              module: 'MMM-CountDown',
                              config: {
                                  event: "New Millenium",
                                  date: "3000-01-01"
                              }
                          }
                  

                  as per https://github.com/boazarad/MMM-CountDown breaks it

                  1 Reply Last reply Reply Quote 0
                  • T
                    tomamer last edited by

                    @yawns oh great spot!
                    edited that and fixed it
                    thanks,

                    1 Reply Last reply Reply Quote 0
                    • T
                      tomamer @yawns last edited by

                      @yawns @Mykle1 thanks for the help, just needed to understand the correct layout, now understanding all working,

                      thanks, Tom

                      yawns 1 Reply Last reply Reply Quote 3
                      • yawns
                        yawns Moderator @tomamer last edited by

                        @tomamer
                        Great, we all were at this point. Enjoy your mirror

                        Mykle1 1 Reply Last reply Reply Quote 3
                        • Mykle1
                          Mykle1 Project Sponsor Module Developer @yawns last edited by

                          @yawns said in New module breaks magicmirror:

                          Great, we all were at this point. Enjoy your mirror

                          Amen to that brother! 🙂

                          @tomamer

                          Enjoy your mirror. 🙂

                          1 Reply Last reply Reply Quote 2
                          • 1 / 1
                          • 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