Read the statement by Michael Teeuw here.
Adding 3rd party modules help please
-
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)
-
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 showmodules: [ { 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
-
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',
-
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 }
-
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.
-
-
@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 -
Thanks for pointing that out for me. I gave you an ^ as well, for taking the time to teach me that…
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
-
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
-
@Mykle1 That’s what this is all about ;) Welcome. I’m sure someday you’ll be able to help get someone through something too.