-
-
Notifications
You must be signed in to change notification settings - Fork 31
MMPM Environment Variables
Each of the below environment variables can be listed by executing mmpm env in terminal, or
viewing them in the Control Center of the GUI. They may be edited by executing mmpm open --env, or
in the Config Editor of the GUI.
The environment variables are defined in a JSON file named ~/.config/mmpm/mmpm-env.json, rather
than using traditional shell environment variables. Setting these within a JSON file allows for the
GUI to hot-reload configuration changes.
Remember, you cannot put comments in mmpm-env.json, as JSON does not support them.
Set this to the absolute path of the root directory of your MagicMirror
installation, for example /home/pi/MagicMirror.
If you have multiple MagicMirror installations on the same device, you can switch between them by modifying this value.
Set this to the IP address of the MagicMirror installation, ie. http://192.168.0.15:8080.
DO NOT USE THE DEFAULT http://localhost:8080
This environment variable is required to hide/show MagicMirror modules.
If you are using MagicMirror with docker-compose, and attempting to hide/show or see the status of
enabled modules, you will need to open MagicMirror in a browser at the MMPM_MAGICMIRROR_URI
address to activate the websocket connection between MMPM and MagicMirror.
Additionally, the MMPM MagicMirror module will need to be installed to activate this feature.
The MMPM MagicMirror module can be installed from the Control Center on the GUI, or through the
CLI with mmpm install --as-module
If you are using pm2 to manage the on/off state of MagicMirror, set this to the process name being
used, ie mm, or MagicMirror. If you are not using pm2, leave this as an empty string.
Do not set both MMPM_MAGICMIRROR_PM2_PROCESS_NAME and MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE. This
will cause undefined behavior.
If you have installed MagicMirror using docker-compose, set this to the absolute path of the
docker-compose.yml file associated with MagicMirror. If you are not using MagicMirror with
docker-compose, leave this as an empty string.
If you are using the Docker/docker-compose version of MMPM, set this to true, otherwise, leave
this false as shown in the examples below.
If this is set to true, leave MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE and
MMPM_MAGICMIRROR_PM2_PROCESS_NAME as empty strings.
The MMPM Docker image cannot control MagicMirror through docker-compose, pm2, or npm.
{
"MMPM_MAGICMIRROR_ROOT": "/home/pi/MagicMirror",
"MMPM_MAGICMIRROR_URI": "http://192.168.0.15:8080",
"MMPM_MAGICMIRROR_PM2_PROCESS_NAME": "",
"MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE": "/home/pi/docker/magicmirror/docker-compose.yml",
"MMPM_IS_DOCKER_IMAGE": false
}{
"MMPM_MAGICMIRROR_ROOT": "/home/pi/MagicMirror",
"MMPM_MAGICMIRROR_URI": "http://192.168.0.15:8080",
"MMPM_MAGICMIRROR_PM2_PROCESS_NAME": "MagicMirror",
"MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE": "",
"MMPM_IS_DOCKER_IMAGE": false
}{
"MMPM_MAGICMIRROR_ROOT": "/home/pi/MagicMirror",
"MMPM_MAGICMIRROR_URI": "http://192.168.0.15:8080",
"MMPM_MAGICMIRROR_PM2_PROCESS_NAME": "",
"MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE": "",
"MMPM_IS_DOCKER_IMAGE": false
}{
"MMPM_MAGICMIRROR_ROOT": "/home/pi/MagicMirror",
"MMPM_MAGICMIRROR_URI": "http://192.168.0.15:8080",
"MMPM_MAGICMIRROR_PM2_PROCESS_NAME": "",
"MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE": "",
"MMPM_IS_DOCKER_IMAGE": true
}