A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
MMM-ModuleMonkeyPatch
-
MMM-ModuleMonkeyPatch
MagicMirror module to make monkey-patching other modules
https://github.com/MMRIZE/MMM-ModuleMonkeyPatchNo screenshot, because it works in the background.
Why?
When you need some modification of existing modules but do not want to edit the original source code to prevent conflicts on upgrade/update.
Butā¦ I think rare people will use this module. :D. This was my half-day weekend killing-time project.
Usage example;
- When you want to change the rendering of a specific module, but not sufficient with only CSS handling. So you have to modify
getDom()
, you can override that method with this module. - When you want to insert a logic into some module to handle your specific notification, you can override
notificationReceived()
with this module.
Or many other things, without worrying of update/upgrading the original module on direct modification.
Limitation
- This module works after
ALL_MODULES_STARTED
notification, which means you cannot overridestart
method.
- When you want to change the rendering of a specific module, but not sufficient with only CSS handling. So you have to modify
-
@MMRIZE Ok, so how do I defeat this for my module? š¤£
-
@MMRIZE Excellent!
No more need to do ugly patch. Thank you for this module.