tosti007 / MMM-ProfileSwitcher

This an extension module for the MagicMirror². It adds the ability to have different layouts for different profiles.
MIT License
46 stars 13 forks source link

How can I add different profiles? Where to add? #10

Open vivian0239 opened 4 years ago

vivian0239 commented 4 years ago

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 4 years ago

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

tosti007 commented 4 years ago

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.