How can I add different profiles? Where to add?
Opened this issue · 2 comments
vivian0239 commented
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 commented
I got it. Such as in another weather module, add
classes: "default everyone",
So it can show when it is for everyone.
tosti007 commented
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.