Read the statement by Michael Teeuw here.
MMM-ModuleToggle
-
Description:
MMM-ModuleToggle can show or hide specific modules by sending a notification to the module. You can also define to toggle between show and hide and hide module on startup.
It can be easily combined with MMM-Buttons to hide or show modules with the press of a button. -
@trekky So… how do you send the notification?
-
@pepemujica I described it in the readme. With the MMM-Buttons module you can for example send the following notification to hide the calendar and clock module:
notification: "MODULE_TOGGLE", payload: {hide: ["calendar", "clock"], show: [], toggle:[]}
-
@trekky Thanks
-
Great idea! :)
If i have multiple instances of a module, for example MMM-WunderGround (for different locations) or as in my case I have 6 MMM-MotionEye modules. :)
Can I specify what “instans” of that module I want to toggle? -
-
I think the class is the same but the “id” is different. I’m using the ID in my MMM-Modulebar. But I’ll have to test it when I have some time. :)