MagicMirror² module to avoid screen burn-in
A module for MagicMirror² to prevent screen burn-in.
MagicMirror/modules/
folder.cd ~/MagicMirror/modules
git clone https://github.com/Lavve/MMM-MagicMover
{
module: "MMM-MagicMover",
config: {
updateInterval: 10 * 60 * 1000,
ignoredRegions: [],
maxMove: 15,
moveWholescreen: false,
}
},
(Note that the 'position'
and 'header'
nodes are not used, and is obsolete even if added to config)
Configuration | Default | Type | Description |
---|---|---|---|
updateInterval | 10 * 60 * 1000 |
int | Time in milliseconds before next movement |
ignoredRegions | [] |
array | An array with regions that will not be affected by MMM-MagicMover. Possible values are the same used in config.js:'top_bar' , 'top_left' , 'top_center' , 'top_right' , 'upper_third' , 'middle_center' , 'lower_third' , 'bottom_left' , 'bottom_center' , 'bottom_right' , 'bottom_bar' , 'fullscreen_above' and 'fullscreen_below' .You can still use the class names for each region, like '.region.top.center' .Also the alert module modals are available for exluding: '.ns-box' and '.ns-alert' . |
maxMove | 15 |
int | Amount of pixels the container is moved based on default position |
moveWholescreen | 'false' | boolean | Move the whole display instead of moving each region independantly |
To enable/disable/toggle MMM-MagicMover from other modules use the following codes:
this.sendNotification('MAGIC_MOVER_ON', {});
this.sendNotification('MAGIC_MOVER_OFF', {});
this.sendNotification('MAGIC_MOVER_TOGGLE', {});
Pull requests, translations and suggestions for improvements are more than welcome.
npm ci
- Install devDependencies like ESLint.npm run lint
- Run linting and formatter checks.npm run lint:fix
- Fix linting and formatter issues.🍻 Buy me a beer if you like my modules! ❤️