-
-
Notifications
You must be signed in to change notification settings - Fork 31
MMPM Environment Variables
You can view your current settings by running mmpm env, or opening the Control Center of the GUI. The variables can be changed by running mmpm open --env, or using Config Editor of the GUI.
The environment variables are defined in a JSON file named ~/.config/mmpm/mmpm-env.json to allow for hot-reloading configuration changes in GUI.
Remember, you cannot put comments in mmpm-env.json.
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. See this page for configuring the Status, Hide/Show feature.
If you are using pm2 to manage the on/off state of MagicMirror, set this to the process name being
used. 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
}