Read the statement by Michael Teeuw here.
MMM-ProfileSwitcher & MMM-RandomPhoto
-
Has anyone been able to get MMM-ProfileSwitcher and MMM-RandomPhoto modules to work together?
I would like to have two profiles, one that only has a photo from MMM-RandomPhoto module with full opacity [opacity: 1] and a second profile that has the opacity set lower with an overlay of my other modules (clock, calendar, etc…)
If I have only one entry in my config.js for MMM-RandomPhoto it seems to work for that profile, but as soon as I have another entry for MMM-RandomPhoto with another class name it seems to be ignored and does not receive the background photo.
I am curious if there is a problem with these two modules working together, or am I understanding the configuration incorrectly?
I have attached my config.js below, in case the error is mine.
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. */ var config = { port: 8080, ipWhitelist: [], address: "", language: 'en', timeFormat: 24, units: 'metric', modules: [ { module: 'alert', }, { module: "updatenotification", position: "top_bar" }, { module: "clock", disabled: false, classes: "TestA", position: "bottom_left", config: { timeFormat: 12, displaySeconds: false, showPeriod: false, clockBold: true, dateFormat: "MMMM Do" } }, { module: "clock", disabled: false, classes: "TestB", position: "top_left", config: { timeFormat: 12, displaySeconds: false, showPeriod: false, clockBold: false, dateFormat: "MMMM Do" } }, { module: 'MMM-RandomPhoto', disabled: false, classes: "default", position: 'fullscreen_below', config: { opacity: 1, animationSpeed: 500, updateInterval: 90, url: 'https://unsplash.it/1920/1080/?random' } }, { module: 'MMM-RandomPhoto', disabled: false, classes: "TestA", position: 'fullscreen_below', config: { opacity: 1, animationSpeed: 500, updateInterval: 90, url: 'https://unsplash.it/1920/1080/?random' } }, { module: 'compliments', position: 'lower_third', classes: 'default' }, { module: 'MMM-ProfileSwitcher', header: 'Profile', config: { defaultTime: 5000, defaultClass: 'default', everyoneClass: 'everyone', useLockStrings: false, enterMessages: { "TestA TestB": "Hey %profile%!" }, leaveMessages: { "everyone": "Bye %person%!", "TestA": ["Another goodbye", true] }, timers: { // when Brian is selected swap to the defaultClass after the defaultTime "TestA": {}, // // When Lisa is selected swap to Brian after 20 seconds "TestB": { profile: "TestA", time: 20 * 1000 }, "default": { profile: "TestB" } } } } ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') {module.exports = config;}
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login