MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Adding 3rd party modules help please

    Troubleshooting
    4
    11
    4892
    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.
    • Mykle1
      Mykle1 Project Sponsor Module Developer last edited by

      I clone a third party module into my /MagicMIrror/modules folder and NOT into my modules/default/ folder? Where do I add the accompanying code in the config.js file? I’ve tried at the end, just after the last default module code (newsfeed) and I’ve tried at the beginning (before ‘alerts’) and I’ve tried in the middle between various default modules. Most of the time I get the error from MagicMirror that there is an error in the config file. Once or twice MagicMirror ran but no new module appeared (Only the default modules appeared). I’ve been at this for weeks. I’m completely new to all of this and I hope someone has the patience and generosity to help an old guy. I’m amazed at how brilliant you all are. You have made it easy enough for me to get this far. So, please help me if you can. Best regards - Mykle (New York)

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • P
        PeppaPigKilla last edited by PeppaPigKilla

        hello

        can you post your code minus any apis passwords etc ?

         {
            module: 'MMM-Globe',
            position: 'bottom_center',
            config: {
                style: 'fullBand',
                imageSize: 600,
                ownImagePath:'',
                updateInterval: 10*60*1000
            }
        },
        
                  {
            module: 'MMM-soccer',
            position: 'top_right',
            config: {
                show: 'ENGLAND',
                focus_on: {
                    'ENGLAND': 'Manchester City FC'
                },
                max_teams: 10
            }
        },
        

        you can see what i do is I add the extra code after the }, on a new line
        Some modules when they ask you to add to the config file they show

        modules: [
                    {
                        module: 'calendar_monthly',
                        position: 'top_left',
                        config: {
                                // The config property is optional
                                // Without a config, a default month view is shown
                                // Please see the 'Configuration Options' section for more information
                        }
                    },
        ]
        

        you see the modules:[ and the ] at he end, dont add them bit in your code, so it should be like this

                    {
                        module: 'calendar_monthly',
                        position: 'top_left',
                        config: {
                                // The config property is optional
                                // Without a config, a default month view is shown
                                // Please see the 'Configuration Options' section for more information
                        }
                    },
        

        So im goign to add the above into my config code now from the top

         {
            module: 'MMM-Globe',
            position: 'bottom_center',
            config: {
                style: 'fullBand',
                imageSize: 600,
                ownImagePath:'',
                updateInterval: 10*60*1000
            }
        },
                    {
                        module: 'calendar_monthly',
                        position: 'top_left',
                        config: {
                                // The config property is optional
                                // Without a config, a default month view is shown
                                // Please see the 'Configuration Options' section for more information
                        }
                    },
        
                  {
            module: 'MMM-soccer',
            position: 'top_right',
            config: {
                show: 'ENGLAND',
                focus_on: {
                    'ENGLAND': 'Manchester City FC'
                },
                max_teams: 10
            }
        },
        

        Ive stuck it in the middle. This will work

        I hope that makes sense

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

          First, let me thank you for assistance. You are most kind. Then, let me apologize that I don’t know how to post the code in that nice frame, as you did. With that, I think I added the code as you advised, yet MagicMirror reported an error in the config, again. I am trying to add the module “planetrise” as shown below. In this case, between “updatenotification” and “clock.”

                      },
                      {
          		module: "updatenotification",
          		position: "bottom_bar"
          	},
          	{
              		module: 'planetrise',
              		position: 'top_right',  // This can be any of the regions.
              		header: 'PLanet Rise',
              		config: {  // Place the latitude and longitude of your mirror
                  		latitude: 45.5,
                  		longitude: -122.38,
                  		// A dictiory of the bodies and unicode character for the symbol
                  		// This is the default and does not need to be listed.
                  		// A full list of bodies can be seen on line 1359 in astronomy.js
                  		// Note: Trying to find the rise time of Earth will crash the Module
                  		bodies: {'Sun': '☉',
                          	'Moon': '☽',
                          	'Mercury': '☿',
                          	'Venus': '♀',
                          	'Mars': '♂',
                          	'Jupiter': '♃',
                          	'Saturn': '♄',
          	},
          	{
          		module: 'clock',
          		position: 'top_left'
          	},
                      {
          		module: 'calendar',
          		header: 'US Holidays',
          		position: 'top_left',
          

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • P
            PeppaPigKilla last edited by PeppaPigKilla

            I’m also new liek you to this, i have myself had similar issues.
            Try

               },
                        {
            		module: "updatenotification",
            		position: "bottom_bar"
            	},
                      	{
                		module: 'planetrise',
                		position: 'top_right',  // This can be any of the regions.
                		header: 'PLanet Rise',
                		config: {  // Place the latitude and longitude of your mirror
                    		latitude: 45.5,
                    		longitude: -122.38,
                    		// A dictiory of the bodies and unicode character for the symbol
                    		// This is the default and does not need to be listed.
                    		// A full list of bodies can be seen on line 1359 in astronomy.js
                    		// Note: Trying to find the rise time of Earth will crash the Module
                    		bodies: {'Sun': '☉',
                            	'Moon': '☽',
                            	'Mercury': '☿',
                            	'Venus': '♀',
                            	'Mars': '♂',
                            	'Jupiter': '♃',
                            	'Saturn': '♄',
                      }
                      }
            	},
            	{
            		module: 'clock',
            		position: 'top_left'
            	},
                        {
            		module: 'calendar',
            		header: 'US Holidays',
            		position: 'top_left',
            

            I have added

            }
            }
            

            after the

            'Saturn': '♄',
            

            add your config to this page here, it points out errors
            http://jshint.com/

            Updated it, missed out another }

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

              Peppa,
              I don’t know how to thank you. That last edit you made did the trick. I am absolutely thrilled right now. I will take your advice and visit http://jshint.com/. I’m going to add, “Peppa made this happen!” in my compliments module.

              Peace, and best regards,

              Mykle (New York)

              P.S. If there is a rating system here, I will find it and give you highest of praise.

              Create a working config
              How to add modules

              P yawns 2 Replies Last reply Reply Quote 1
              • P
                PeppaPigKilla @Mykle1 last edited by

                @Mykle1

                You’re welcome buddy

                Wish you the best.

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

                  @Mykle1 said in Adding 3rd party modules help please:

                  If there is a rating system here, I will find it and give you highest of praise.

                  Bottom right on every post you see 🔼 and 🔽 , just without the blue…
                  Press/tap the up button and the author of this post gets +1

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

                    @yawns

                    Thanks for pointing that out for me. I gave you an ^ as well, for taking the time to teach me that…

                    @PeppaPigKilla

                    I gave you as many ^ as this page would allow. You spent a considerable amount of time and effort in helping me solve my problem and I appreciate that. I kept clicking ^ on your posts but each would only permit +1. Again, many thanks.

                    Peace

                    Create a working config
                    How to add modules

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

                      @PeppaPigKilla

                      As promised, I gave you as many ^ as this page would allow. You spent a considerable amount of time and effort in helping me solve my problem and I appreciate that. I kept clicking ^ on your posts but each would only permit +1. Again, many thanks.

                      Peace

                      Create a working config
                      How to add modules

                      cowboysdude 1 Reply Last reply Reply Quote 0
                      • cowboysdude
                        cowboysdude Module Developer @Mykle1 last edited by

                        @Mykle1 That’s what this is all about 😉 Welcome. I’m sure someday you’ll be able to help get someone through something too.

                        Mykle1 1 Reply Last reply 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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy