Skip to content

Status, Hide, Show MagicMirror Modules

Brandon Marlowe edited this page Dec 18, 2023 · 14 revisions

The MMM-mmpm module enables hiding/showing of MagicMirror modules.

Installation/Removal

Install through the CLI:

mmpm install MMM-mmpm

Register MMM-mmpm in the MagicMirror config.js

Once the MMPM MagicMirror module is installed, you will need to add it to the modules array in config/config.js, which can be edited through the CLI using mmpm open --config, or in the Config Editor tab of the GUI. You can see an example of the MMPM module added to the modules array below.

let config = {
    // other settings
    ipWhiteList = [], // this is recommended to make things simple
    modules = [
        // ... other modules
        { module: "MMM-mmpm" }
    ]
}

Configuration

MMPM Env

You can check your current configuration in the CLI by running mmpm env, or in the Config Editor of the UI. You can edit the values in the Config Editor or by running mmpm open --env.

MMPM_MAGICMIRROR_URI should be set to the IP address of the device hosting MagicMirror (which should also be the same device you installed MMPM on). Do not leave this set to the default value http://localhost:8080. You can see an example below:

{
  "MMPM_MAGICMIRROR_ROOT": "/home/pi/MagicMirror",
  "MMPM_MAGICMIRROR_URI": "http://192.168.0.192:8080",
  "MMPM_MAGICMIRROR_PM2_PROCESS_NAME": "",
  "MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE": "",
  "MMPM_IS_DOCKER_IMAGE": false
}