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

Adding 3rd party modules help please

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 4 Posters 6.7k 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.
  • M Offline
    Mykle1 Project Sponsor Module Developer
    last edited by Jan 29, 2017, 1:01 PM

    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 Offline
      PeppaPigKilla
      last edited by PeppaPigKilla Jan 29, 2017, 1:10 PM Jan 29, 2017, 1:09 PM

      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
      • M Offline
        Mykle1 Project Sponsor Module Developer
        last edited by Jan 29, 2017, 1:52 PM

        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 Offline
          PeppaPigKilla
          last edited by PeppaPigKilla Jan 29, 2017, 2:04 PM Jan 29, 2017, 1:57 PM

          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
          • M Offline
            Mykle1 Project Sponsor Module Developer
            last edited by Jan 29, 2017, 2:22 PM

            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 Y 2 Replies Last reply Jan 29, 2017, 2:26 PM Reply Quote 1
            • P Offline
              PeppaPigKilla @Mykle1
              last edited by Jan 29, 2017, 2:26 PM

              @Mykle1

              You’re welcome buddy

              Wish you the best.

              M 1 Reply Last reply Jan 29, 2017, 9:43 PM Reply Quote 3
              • Y Offline
                yawns Moderator @Mykle1
                last edited by Jan 29, 2017, 9:22 PM

                @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 :arrow_up_small: and :arrow_down_small: , just without the blue…
                Press/tap the up button and the author of this post gets +1

                M 1 Reply Last reply Jan 29, 2017, 9:39 PM Reply Quote 3
                • M Offline
                  Mykle1 Project Sponsor Module Developer @yawns
                  last edited by Jan 29, 2017, 9:39 PM

                  @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
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @PeppaPigKilla
                    last edited by Jan 29, 2017, 9:43 PM

                    @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

                    C 1 Reply Last reply Jan 30, 2017, 12:46 AM Reply Quote 0
                    • C Offline
                      cowboysdude Module Developer @Mykle1
                      last edited by Jan 30, 2017, 12:46 AM

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

                      M 1 Reply Last reply Jan 30, 2017, 1:49 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        3/11
                        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