MMM-ProfileSwitcher icon indicating copy to clipboard operation
MMM-ProfileSwitcher copied to clipboard

How can I add different profiles? Where to add?

Open vivian0239 opened this issue 5 years ago • 2 comments

Hi, I don't know how to add different profiles, could someone tell me how to do that? I didn't find any example. Below is a wrong sample, but that's what I want to do.

{
	module: 'MMM-ProfileSwitcher',
	config: {
		// See 'Configuration options' for more information.
		{
			module: 'example_module',
			// Set your classes here separated by a space.
			// Shown for all profiles and for the default profile
			classes: 'default everyone'
		},
		{
			module: 'example_module2',
			// Only shown for me
			classes: 'Brian'
		}
	}
}

vivian0239 avatar Aug 15 '20 20:08 vivian0239

I got it. Such as in another weather module, add classes: "default everyone", So it can show when it is for everyone.

vivian0239 avatar Aug 15 '20 21:08 vivian0239

Hey there!

Yea so you don't have to define the classes anywhere else, just by naming them at the module's config as you have in the example config is sufficient.

So yes, if you want to have a weather module always visible you just add classes: 'default everyone' and it should always be visible.

tosti007 avatar Aug 20 '20 07:08 tosti007