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

New module breaks magicmirror

Scheduled Pinned Locked Moved Solved Troubleshooting
10 Posts 4 Posters 3.0k Views 4 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.
  • T Offline
    tomamer
    last edited by Jun 11, 2018, 10:18 PM

    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,

    M 1 Reply Last reply Jun 12, 2018, 12:34 AM Reply Quote 0
    • T Offline
      tomamer
      last edited by tomamer Jun 12, 2018, 8:19 AM Jun 12, 2018, 8:17 AM

      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,

      Y 1 Reply Last reply Jun 12, 2018, 10:07 AM Reply Quote 0
      • S Offline
        sharmstr Project Sponsor
        last edited by Jun 11, 2018, 10:20 PM

        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
        • M Offline
          Mykle1 Project Sponsor Module Developer @tomamer
          last edited by Jun 12, 2018, 12:34 AM

          @tomamer

          How to add modules!

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

          Create a working config
          How to add modules

          T 1 Reply Last reply Jun 12, 2018, 3:02 PM Reply Quote 2
          • T Offline
            tomamer
            last edited by tomamer Jun 12, 2018, 8:19 AM Jun 12, 2018, 8:17 AM

            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,

            Y 1 Reply Last reply Jun 12, 2018, 10:07 AM Reply Quote 0
            • Y Offline
              yawns Moderator @tomamer
              last edited by Jun 12, 2018, 10:07 AM

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

              There is a wrong apostrophe before Kingston

              T 1 Reply Last reply Jun 12, 2018, 6:07 PM Reply Quote 2
              • T Offline
                tomamer @Mykle1
                last edited by Jun 12, 2018, 3:02 PM

                @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 Offline
                  tomamer
                  last edited by Jun 12, 2018, 3:08 PM

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

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tomamer @yawns
                    last edited by Jun 12, 2018, 6:07 PM

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

                    thanks, Tom

                    Y 1 Reply Last reply Jun 12, 2018, 8:32 PM Reply Quote 3
                    • Y Offline
                      yawns Moderator @tomamer
                      last edited by Jun 12, 2018, 8:32 PM

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

                      M 1 Reply Last reply Jun 13, 2018, 7:22 PM Reply Quote 3
                      • M Offline
                        Mykle1 Project Sponsor Module Developer @yawns
                        last edited by Jun 13, 2018, 7:22 PM

                        @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. :-)

                        Create a working config
                        How to add modules

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