@sdetweil Sam, thank you again for the time and effort you’re putting in to help solve this. I retyped all config characters (in case cut and paste carried over weird characters), I changed the location on my MM to top center as you did, I verified the link and still No Joy! I think next, I’ll uninstall the module again, reinstall it and verify all character are correct (no wrong "s, etc.). If you can think of anything else I can try, I’ll try it out. Thanks again. I’ll post what happens when I uninstall/reinstall.
Read the statement by Michael Teeuw here.
Posts made by MMNewby
-
RE: Eye Candy Module Doesn't Load
-
RE: Eye Candy Module Doesn't Load
@sdetweil Thank you for your responses. The only changes I’ve made have been to the config files and I’ve typed them directly into MM config files. It’s good to know about the quotes as I have copied and pasted from the config files to a text document (Word) and they are being changed in the translation - I’ll not do that again. I included the other code to show everything and not just what I’ve changed. Regarding the gif itself, I too have seen this on the MM web browser (raspberry pi). It is truly strange why this module doesn’t work. All config info appears correct and the link is “live”. Thanks again for your time and help…I’ve been over every character! I think.
-
Eye Candy Module Doesn't Load
Reinstalled Eye Candy module in MM and verified config with help. MM boots normally but Eye Candy module doesn’t load. Everything seems correct everywhere, except the module doesn’t show on the mirror. Below are config files as copied from MM. Any ideas on why Eye Candy won’t load? Thank you for any help you can give…
Here is config file from: home/pi/magicmirror/config:
{
module: “MMM-EyeCandy”,
position: “top_right”,
config: {
maxWidth: “75%”, // Sizes the images. Retains aspect ratio.
style: ‘1’,
ownImagePath: ‘https://radar.weather.gov/ridge/lite/KCLE_loop.gif’
}
},Here is config file from home/pi/magicmirror/modules/mmm-eyecandy
Module.register(“MMM-EyeCandy”, {
// Default module config.
defaults: {
style: ‘1’, // 1-52
maxWidth: “100%”, // Adjusts size of images. Retains aspect ratio.
ownImagePath: ‘https://radar.weather.gov/ridge/lite/KCLE_loop.gif’
updateInterval: 5 * 60 * 1000, // set in config.js
animationSpeed: 3000,
},start: function() { self = this; this.url = ''; this.eyesUrls = {
DID NOT COPY GIFS FROM MODULE HERE SINCE I’M USING URL FOR GIF
// console.log(this.eyesUrls[this.config.style]); if (this.config.ownImagePath != '') { this.url = this.config.ownImagePath; } else { if (this.config.style != '') { this.url = this.eyesUrls[this.config.style]; } } // ADDED: Schedule update timer courtesy of ninjabreadman var self = this; setInterval(function() { self.updateDom(self.config.animationSpeed || 0); // use config.animationSpeed or revert to zero @ninjabreadman }, this.config.updateInterval); }, getStyles: function() { return ["MMM-EyeCandy.css"] }, // Override dom generator. getDom: function() { var wrapper = document.createElement("div"); var image = document.createElement("img"); var getTimeStamp = new Date(); if (this.config.ownImagePath != '') { image.classList.add = "photo"; image.src = this.url + "?seed=" + getTimeStamp; image.style.maxWidth = this.config.maxWidth; } else if (this.config.style != '') { image.classList.add = "photo"; image.src = this.url + "?seed=" + getTimeStamp; image.style.maxWidth = this.config.maxWidth; } wrapper.appendChild(image); return wrapper; }, ///// Add this function to the modules you want to control with voice ////// notificationReceived: function(notification, payload) { if (notification === 'HIDE_EYECANDY') { this.hide(); } else if (notification === 'SHOW_EYECANDY') { this.show(1000); } },
});
-
RE: Eye Candy Reinstall - Config Doesn't Work
@mumblebaj and @sdetweil thank you for the assistance. I was able to clean up the config file with what you provide and MM boots. However, I’ll need to figure out why the weather radar gif didn’t populate onscreen. Perhaps more posts are coming, but is config file question is now solved. Thank you for your time, expertise and help!
-
RE: Eye Candy Reinstall - Config Doesn't Work
Thank you for the suggestion. I changed the quotes in both files, save and started MM. What I continue to get the a black screen that says Magic Mirror2 Please create a config file. See README for more information. If you get this message while your config file is already created, your config file probably contains an error. Use a JavaScript linter to validate your file.
When I use // before the command lines (the lines turn red), and restart, the MM operates normally with the other modules working, but the upper right where Eye Candy is assigned is blank. It’s only when the command lines are “live” for Eye Candy (i.e. the URL for the gif) that the black screen error shows up. Thanks again for your help.
-
Eye Candy Reinstall - Config Doesn't Work
Uninstalled Eye Candy as described at MM site, then reinstalled as directed at MM site. Here are the two config files as edited:
In directory: home/pi/MagicMirror/modules/MMM-EyeCandy
/* Magic Mirror
- Module: MMM-EyeCandy
- By Mykle1
- MIT Licensed.
*/
Module.register(“MMM-EyeCandy”, {
// Default module config.
defaults: {
style: ‘1’, // 1-52
maxWidth: “100%”, // Adjusts size of images. Retains aspect ratio.
ownImagePath: ‘https://radar.weather.gov/ridge/lite/KCLE_loop.gif’
updateInterval: 5 * 60 * 1000, // set in config.js
animationSpeed: 3000,
},
In directory: home/pi/MagicMirror/config
{
module: “MMM-EyeCandy”,
position: “top_right”,
config: {
maxWidth: “75%”, // Sizes the images. Retains aspect ratio.
style: ‘1’, ‘https://radar.weather.gov/ridge/lite/KCLE_loop.gif’
ownImagePath: ‘’, ‘https://radar.weather.gov/ridge/lite/KCLE_loop.gif’
}
},I’ve looked and tweeked trying to figure out why I can’t boot because the MM says there is no config file, but can’t. Appreciate any guidance. Thank you.
-
Eye Candy Change and Now Not Working
Hello all. Recently the weather radar I was using for the Eye Candy module quit working so I used the // to stop the module from loading until I could find a suitable alternative. I think I found one (after several months away) and when I try to boot after putting in the new URL for the gif, I’m told there is no config file. I am completely lost and frustrated. The MM works with all the other modules, it’s just the Eye Candy module that I can’t get configured and working. Any ideas, suggestions, help or cold water to the face will be greatly appreciated. We’ve come to love our mirror and miss the weather radar. Thanks in advance.
-
MMM-BMW-OW
Can someone explain how to change the units in the BMW-OW weather module to imperial? Also, how can I add color as shown in the example? My module shows only white and I don’t see any configuration changes. Many thanks.
-
RE: No GitHub Info on Module Page
That worked, thank you for the help and patience!