Skip to content

Dennis-Rosenbaum/MMM-Template

Repository files navigation

MMM-Template

Use this template for creating new MagicMirror² modules.

See the wiki page for an in depth overview of how to get started.

MMM-Template

Example of MMM-Template

[Module description]

Installation

Install

In your terminal, go to your MagicMirror² Module folder and clone MMM-Template:

cd ~/MagicMirror/modules
git clone [GitHub url]

Update

cd ~/MagicMirror/modules/MMM-Template
git pull

Using the module

To use this module, add it to the modules array in the config/config.js file:

    {
        module: 'MMM-Template',
        position: 'lower_third'
    },

Or you could use all the options:

    {
        module: 'MMM-Template',
        position: 'lower_third',
        config: {
            exampleContent: 'Welcome world'
        }
    },

Configuration options

Option Possible values Default Description
exampleContent string not available The content to show on the page

Sending notifications to the module

Notification Description
TEMPLATE_RANDOM_TEXT Payload must contain the text that needs to be shown on this module

Developer commands

  • npm install - Install devDependencies like ESLint.
  • npm run lint - Run linting and formatter checks.
  • npm run lint:fix - Fix linting and formatter issues.