Hi there.
I have troubles to get package manager working on a debian server-only installation.
I start with a fresh instance as user phil:
sudo apt update && apt upgrade -y
sudo apt install curl git -y
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install -y nodejs
git clone https://github.com/MichMich/MagicMirror
cd MagicMirror/
npm install
cp config/config.js.sample config/config.js
nano /config/config.js
I changed it to:
var config = {
address: "0.0.0.0",
port: 8080,
basePath: "/",
ipWhitelist: [],
useHttps: false,
httpsPrivateKey: "",
httpsCertificate: "",
language: "de",
logLevel: ["INFO", "LOG", "WARN", "ERROR"],
timeFormat: 24,
units: "metric",
serverOnly: true,
Finally, I try
now let's run this as a service and run
sudo nano /etc/systemd/system/magicmirror.service
[Unit]
Description=Magic Mirror
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=phil
WorkingDirectory=/home/phil/MagicMirror/
ExecStart=/usr/bin/node /home/phil/MagicMirror/serveronly
[Install]
WantedBy=multi-user.target
followed by
sudo systemctl enable magicmirror.service
reboot
Now, up to the mighty package manager.
chain of commands:
apt install libffi-dev nginx-full -y
python3 -m pip install --upgrade --no-cache-dir mmpm
sudo nano /etc/login.defs -> add /home/phil/.local/bin:/local/sbin
mmpm --guided-setup
Notes here
- in the documentation, the variable "MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE": ".", never has a . in there, but using that wizard, there is a dot in there. Don't know if that is a problem (tried removing it when running into issues without any success). At least it is confusing. What is correct?
- what's next? In the installation Readme, after the quick installation guide, the gui preview is shown, but there is no comment where and how to reach that gui. My best guess is by accessing the 10.0.1.11:7890 directly (that I found in the nginx-config..
next, I found this in the logs
2020/11/01 19:53:25 [error] 6526#6526: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.9.21, server: _, request: "GET / HTTP/1.1", upstream: "http://[::1]:7891/", host: "10.0.1.11:7890"
2020/11/01 19:53:25 [error] 6526#6526: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.9.21, server: _, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:7891/", host: "10.0.1.11:7890"
so I changed the
nano /etc/nginx/sites-enabled/mmpm.conf
and replaced the localhosts with 127.0.0.1
server {
listen 7890;
server_name _;
location / {
proxy_pass http://127.0.0.1:7891/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-PORT $remote_port;
add_header "Access-Control-Allow-Origin" '*';
}
location /static {
alias /var/www/mmpm/static;
add_header "Access-Control-Allow-Origin" '*';
}
error_log /var/log/nginx/mmpm-error.log;
access_log /var/log/nginx/mmpm-access.log;
}
server {
listen 7892;
server_name _;
location / {
proxy_pass http://127.0.0.1:7893;
proxy_http_version 1.1;
proxy_read_timeout 300;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-PORT $remote_port;
}
}
and changed the localhost in
nano /etc/systemd/system/mmpm.service
so it became:
[Unit]
Description=MMPM Gunicorn daemon
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
User=root
Type=notify
ExecStart=/usr/local/bin/gunicorn --reload --worker-class eventlet --bind 127.0.0.1:7891 mmpm.wsgi:app --user=phil
ExecReload=/bin/kill -s HUP $MAINPID
PIDFile=/run/mmpm.pid
KillMode=mixed
TimeoutStopSec=5
PrivateTmp=true
and rebooted.
I cannot find any warnings / errors in any of the logs I found:
- ~/.config/mmpm/log/*
- /var/log/nginx/*
I have the content here:
mmpm-cli-interface.log
2020-11-02 20:57:46,089.089 ERROR utils - assert_required_defaults_exist: Expecting value: line 1 column 1 (char 0)
Expecting value: line 1 column 1 (char 0)
2020-11-02 20:58:04,664.664 CRITICAL utils - fatal_msg: NGINX is not in your $PATH. Please install `nginx-full` (Debian), `nginx-mainline` (Arch) or equivalent
NGINX is not in your $PATH. Please install `nginx-full` (Debian), `nginx-mainline` (Arch) or equivalent
2020-11-02 21:01:46,694.694 CRITICAL utils - fatal_msg: NGINX is not in your $PATH. Please install `nginx-full` (Debian), `nginx-mainline` (Arch) or equivalent
NGINX is not in your $PATH. Please install `nginx-full` (Debian), `nginx-mainline` (Arch) or equivalent
2020-11-02 21:07:15,089.089 INFO core - install_autocompletion: user attempting to install MMPM autocompletion
user attempting to install MMPM autocompletion
2020-11-02 21:07:15,090.090 INFO core - install_autocompletion: detected user shell to be /bin/bash
detected user shell to be /bin/bash
2020-11-02 21:07:15,091.091 INFO core - __match_shell_config__: searching for one of the following shell configuration files ['.bashrc', '.bash_profile', '.bash_login', '.profile']
searching for one of the following shell configuration files ['.bashrc', '.bash_profile', '.bash_login', '.profile']
2020-11-02 21:07:15,091.091 INFO core - __match_shell_config__: found /home/phil/.bashrc shell configuration file for /bin/bash
found /home/phil/.bashrc shell configuration file for /bin/bash
2020-11-02 21:07:15,091.091 INFO core - __echo_and_eval__: executing echo 'eval "$(register-python-argcomplete mmpm)"' >> /home/phil/.bashrc to install autocompletion
executing echo 'eval "$(register-python-argcomplete mmpm)"' >> /home/phil/.bashrc to install autocompletion
2020-11-02 21:07:15,103.103 INFO core - display_mmpm_env_vars: User listing environment variables, set with the following values
User listing environment variables, set with the following values
2020-11-02 21:07:38,843.843 INFO core - check_for_mmpm_updates: Checking for newer version of MMPM. Current version: 2.05
Checking for newer version of MMPM. Current version: 2.05
2020-11-02 21:07:38,844.844 INFO utils - run_cmd: Executing process `curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py` in foreground
Executing process `curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py` in foreground
2020-11-02 21:07:39,352.352 INFO core - check_for_mmpm_updates: No newer version of MMPM found > 2.05 available. The current version is the latest
No newer version of MMPM found > 2.05 available. The current version is the latest
2020-11-02 21:09:28,277.277 INFO core - load_packages: Backing up database file as /home/phil/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak
Backing up database file as /home/phil/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak
2020-11-02 21:09:28,286.286 INFO core - load_packages: Back up of database complete
Back up of database complete
2020-11-02 21:09:32,004.004 INFO api - packages_marketplace: Sending all marketplace packages
Sending all marketplace packages
2020-11-02 21:09:32,076.076 INFO api - magicmirror_config: Retrieving MagicMirror config
Retrieving MagicMirror config
2020-11-02 21:09:32,086.086 INFO api - magicmirror_custom_css: Retrieving MagicMirror /home/phil/MagicMirror/custom/custom.css
Retrieving MagicMirror /home/phil/MagicMirror/custom/custom.css
2020-11-02 21:09:32,257.257 INFO api - packages_installed: Sending all installed packages
Sending all installed packages
2020-11-02 21:09:32,285.285 INFO api - packages_external: Sending all external packages
Sending all external packages
2020-11-02 21:09:32,316.316 INFO utils - reset_available_upgrades_for_environment: Resetting available upgrades for /home/phil/MagicMirror
Resetting available upgrades for /home/phil/MagicMirror
2020-11-02 21:09:32,318.318 INFO core - check_for_mmpm_updates: Checking for newer version of MMPM. Current version: 2.05
Checking for newer version of MMPM. Current version: 2.05
2020-11-02 21:09:32,319.319 INFO utils - run_cmd: Executing process `curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py` in foreground
Executing process `curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py` in foreground
2020-11-02 21:09:32,630.630 INFO core - check_for_mmpm_updates: No newer version of MMPM found > 2.05 available. The current version is the latest
No newer version of MMPM found > 2.05 available. The current version is the latest
2020-11-02 21:09:32,633.633 INFO utils - run_cmd: Executing process `git fetch --dry-run` in foreground
Executing process `git fetch --dry-run` in foreground
2020-11-02 21:09:33,455.455 INFO api - packages_upgradeable: Request to get upgradeable packages
Request to get upgradeable packages
2020-11-02 21:09:45,096.096 INFO core - load_packages: Backing up database file as /home/phil/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak
Backing up database file as /home/phil/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak
2020-11-02 21:09:45,098.098 INFO core - load_packages: Back up of database complete
Back up of database complete
2020-11-02 21:10:41,161.161 INFO api - mmpm_environment_vars_file: Saving MMPM environment variables file
Saving MMPM environment variables file
2020-11-02 21:10:41,178.178 INFO api - packages_marketplace: Sending all marketplace packages
Sending all marketplace packages
2020-11-02 21:10:41,208.208 INFO api - packages_installed: Sending all installed packages
Sending all installed packages
2020-11-02 21:10:41,218.218 INFO api - packages_external: Sending all external packages
Sending all external packages
2020-11-02 21:10:41,230.230 INFO utils - reset_available_upgrades_for_environment: Resetting available upgrades for /home/phil/MagicMirror
Resetting available upgrades for /home/phil/MagicMirror
2020-11-02 21:10:41,231.231 INFO core - check_for_mmpm_updates: Checking for newer version of MMPM. Current version: 2.05
Checking for newer version of MMPM. Current version: 2.05
2020-11-02 21:10:41,233.233 INFO utils - run_cmd: Executing process `curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py` in foreground
Executing process `curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py` in foreground
2020-11-02 21:10:41,440.440 INFO core - check_for_mmpm_updates: No newer version of MMPM found > 2.05 available. The current version is the latest
No newer version of MMPM found > 2.05 available. The current version is the latest
2020-11-02 21:10:41,443.443 INFO utils - run_cmd: Executing process `git fetch --dry-run` in foreground
Executing process `git fetch --dry-run` in foreground
2020-11-02 21:10:42,266.266 INFO api - packages_upgradeable: Request to get upgradeable packages
Request to get upgradeable packages
2020-11-02 21:10:49,013.013 INFO api - packages_marketplace: Sending all marketplace packages
Sending all marketplace packages
2020-11-02 21:10:49,076.076 INFO api - magicmirror_config: Retrieving MagicMirror config
Retrieving MagicMirror config
2020-11-02 21:10:49,082.082 INFO api - magicmirror_custom_css: Retrieving MagicMirror /home/phil/MagicMirror/custom/custom.css
Retrieving MagicMirror /home/phil/MagicMirror/custom/custom.css
2020-11-02 21:10:49,225.225 INFO api - packages_installed: Sending all installed packages
Sending all installed packages
2020-11-02 21:10:49,258.258 INFO api - packages_external: Sending all external packages
Sending all external packages
2020-11-02 21:10:49,287.287 INFO utils - reset_available_upgrades_for_environment: Resetting available upgrades for /home/phil/MagicMirror
Resetting available upgrades for /home/phil/MagicMirror
2020-11-02 21:10:49,288.288 INFO core - check_for_mmpm_updates: Checking for newer version of MMPM. Current version: 2.05
Checking for newer version of MMPM. Current version: 2.05
2020-11-02 21:10:49,290.290 INFO utils - run_cmd: Executing process `curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py` in foreground
Executing process `curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py` in foreground
2020-11-02 21:10:49,799.799 INFO core - check_for_mmpm_updates: No newer version of MMPM found > 2.05 available. The current version is the latest
No newer version of MMPM found > 2.05 available. The current version is the latest
2020-11-02 21:10:49,802.802 INFO utils - run_cmd: Executing process `git fetch --dry-run` in foreground
Executing process `git fetch --dry-run` in foreground
2020-11-02 21:10:50,623.623 INFO api - packages_upgradeable: Request to get upgradeable packages
Request to get upgradeable packages
2020-11-02 21:21:28,953.953 INFO core - load_packages: Backing up database file as /home/phil/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak
Backing up database file as /home/phil/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak
2020-11-02 21:21:28,955.955 INFO core - load_packages: Back up of database complete
Back up of database complete
2020-11-02 21:26:34,226.226 INFO core - load_packages: Backing up database file as /home/phil/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak
Backing up database file as /home/phil/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak
2020-11-02 21:26:34,227.227 INFO core - load_packages: Back up of database complete
Back up of database complete
2020-11-02 21:26:34,233.233 INFO core - display_mmpm_env_vars: User listing environment variables, set with the following values
User listing environment variables, set with the following values
2020-11-02 21:26:45,847.847 INFO api - mmpm_environment_vars_file: Saving MMPM environment variables file
Saving MMPM environment variables file
2020-11-02 21:26:45,865.865 INFO api - packages_marketplace: Sending all marketplace packages
Sending all marketplace packages
2020-11-02 21:26:45,893.893 INFO api - packages_installed: Sending all installed packages
Sending all installed packages
2020-11-02 21:26:45,903.903 INFO api - packages_external: Sending all external packages
Sending all external packages
2020-11-02 21:26:45,916.916 INFO utils - reset_available_upgrades_for_environment: Resetting available upgrades for /home/phil/MagicMirror
Resetting available upgrades for /home/phil/MagicMirror
2020-11-02 21:26:45,917.917 INFO core - check_for_mmpm_updates: Checking for newer version of MMPM. Current version: 2.05
Checking for newer version of MMPM. Current version: 2.05
2020-11-02 21:26:45,920.920 INFO utils - run_cmd: Executing process `curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py` in foreground
Executing process `curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py` in foreground
2020-11-02 21:26:46,328.328 INFO core - check_for_mmpm_updates: No newer version of MMPM found > 2.05 available. The current version is the latest
No newer version of MMPM found > 2.05 available. The current version is the latest
2020-11-02 21:26:46,332.332 INFO utils - run_cmd: Executing process `git fetch --dry-run` in foreground
Executing process `git fetch --dry-run` in foreground
2020-11-02 21:26:47,154.154 INFO api - packages_upgradeable: Request to get upgradeable packages
Request to get upgradeable packages
2020-11-02 21:27:10,205.205 INFO core - load_packages: Backing up database file as /home/phil/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak
Backing up database file as /home/phil/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak
2020-11-02 21:27:10,207.207 INFO core - load_packages: Back up of database complete
Back up of database complete
2020-11-02 21:27:10,213.213 INFO core - display_mmpm_env_vars: User listing environment variables, set with the following values
User listing environment variables, set with the following values
mmpm-error.log (those errors occured before fixing the localhost with 127.0.0.1
2020/11/02 21:07:31 [error] 552#552: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.9.21, server: _, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:7891/", host: "10.0.1.11:7890"
2020/11/02 21:07:31 [error] 552#552: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.9.21, server: _, request: "GET / HTTP/1.1", upstream: "http://[::1]:7891/", host: "10.0.1.11:7890"
mmpm-access.log
10.0.9.21 - - [02/Nov/2020:21:07:31 +0100] "GET / HTTP/1.1" 502 575 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:31 +0100] "GET / HTTP/1.1" 200 360 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:31 +0100] "GET /static/runtime-es2015.js HTTP/1.1" 200 1492 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:31 +0100] "GET /static/polyfills-es2015.js HTTP/1.1" 200 36993 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:31 +0100] "GET /static/styles.css HTTP/1.1" 200 172629 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:31 +0100] "GET /static/main-es2015.js HTTP/1.1" 200 935742 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /api/packages/marketplace HTTP/1.1" 200 48287 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /api/mmpm/environment-vars HTTP/1.1" 200 168 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/assets/icons/paypal.svg HTTP/1.1" 200 1369 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /api/mmpm/version HTTP/1.1" 200 17 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /api/mmpm/environment-vars HTTP/1.1" 200 168 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /api/magicmirror/config HTTP/1.1" 200 2092 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /api/magicmirror/custom-css HTTP/1.1" 200 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /api/mmpm/environment-vars-file HTTP/1.1" 200 229 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/assets/monaco/vs/loader.js HTTP/1.1" 200 30186 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/MaterialIcons-Regular.woff2 HTTP/1.1" 200 60840 "http://10.0.1.11:7890/static/styles.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/PermanentMarker-Regular.ttf HTTP/1.1" 200 73620 "http://10.0.1.11:7890/static/styles.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /api/packages/installed HTTP/1.1" 200 191 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /api/packages/external HTTP/1.1" 200 56 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/assets/monaco/vs/editor/editor.main.js HTTP/1.1" 200 2197098 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/assets/monaco/vs/editor/editor.main.css HTTP/1.1" 200 301370 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/assets/monaco/vs/editor/editor.main.nls.js HTTP/1.1" 200 39283 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/assets/monaco/vs/language/typescript/tsMode.js HTTP/1.1" 200 20892 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/assets/monaco/vs/basic-languages/javascript/javascript.js HTTP/1.1" 200 6462 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/assets/monaco/vs/language/json/jsonMode.js HTTP/1.1" 200 48760 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/assets/monaco/vs/base/worker/workerMain.js HTTP/1.1" 200 136669 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:32 +0100] "GET /static/assets/monaco/vs/language/json/jsonWorker.js HTTP/1.1" 200 126041 "http://10.0.1.11:7890/static/assets/monaco/vs/base/worker/workerMain.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:33 +0100] "GET /api/packages/update HTTP/1.1" 200 4 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:09:33 +0100] "GET /api/packages/upgradeable HTTP/1.1" 200 75 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:41 +0100] "POST /api/mmpm/environment-vars-file HTTP/1.1" 200 4 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:41 +0100] "GET /api/mmpm/environment-vars HTTP/1.1" 200 166 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:41 +0100] "GET /api/packages/marketplace HTTP/1.1" 200 48287 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:41 +0100] "GET /api/packages/installed HTTP/1.1" 200 191 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:41 +0100] "GET /api/packages/external HTTP/1.1" 200 56 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:42 +0100] "GET /api/packages/update HTTP/1.1" 200 4 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:42 +0100] "GET /api/packages/upgradeable HTTP/1.1" 200 75 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:44 +0100] "GET /api/mmpm/environment-vars HTTP/1.1" 200 166 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:48 +0100] "GET / HTTP/1.1" 200 360 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:48 +0100] "GET /static/styles.css HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:48 +0100] "GET /static/runtime-es2015.js HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:48 +0100] "GET /static/polyfills-es2015.js HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:48 +0100] "GET /static/main-es2015.js HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /api/mmpm/environment-vars HTTP/1.1" 200 166 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /api/packages/marketplace HTTP/1.1" 200 48287 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/assets/icons/paypal.svg HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /api/mmpm/version HTTP/1.1" 200 17 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /api/mmpm/environment-vars HTTP/1.1" 200 166 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /api/magicmirror/config HTTP/1.1" 200 2092 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /api/mmpm/environment-vars-file HTTP/1.1" 200 228 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /api/magicmirror/custom-css HTTP/1.1" 200 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/MaterialIcons-Regular.woff2 HTTP/1.1" 304 0 "http://10.0.1.11:7890/static/styles.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/PermanentMarker-Regular.ttf HTTP/1.1" 304 0 "http://10.0.1.11:7890/static/styles.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/assets/monaco/vs/loader.js HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /api/packages/installed HTTP/1.1" 200 191 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /api/packages/external HTTP/1.1" 200 56 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/assets/monaco/vs/editor/editor.main.js HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/assets/monaco/vs/editor/editor.main.css HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/assets/monaco/vs/editor/editor.main.nls.js HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/assets/monaco/vs/language/typescript/tsMode.js HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/assets/monaco/vs/basic-languages/javascript/javascript.js HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/assets/monaco/vs/language/json/jsonMode.js HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/assets/monaco/vs/base/worker/workerMain.js HTTP/1.1" 304 0 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:49 +0100] "GET /static/assets/monaco/vs/language/json/jsonWorker.js HTTP/1.1" 304 0 "http://10.0.1.11:7890/static/assets/monaco/vs/base/worker/workerMain.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:50 +0100] "GET /api/mmpm/environment-vars HTTP/1.1" 200 166 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:50 +0100] "GET /api/packages/update HTTP/1.1" 200 4 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
10.0.9.21 - - [02/Nov/2020:21:10:50 +0100] "GET /api/packages/upgradeable HTTP/1.1" 200 75 "http://10.0.1.11:7890/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"
cat /etc/os-release
phil@MagicMirrors:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
python3 --version
phil@MagicMirrors:~$ python3 --version
Python 3.7.3
Webbrowser: Chrome
phil@MagicMirrors:~$ mmpm env
{
"MMPM_MAGICMIRROR_ROOT": "/home/phil/MagicMirror",
"MMPM_MAGICMIRROR_URI": "http://10.0.1.11:8080",
"MMPM_MAGICMIRROR_PM2_PROCESS_NAME": "",
"MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE": ".",
"MMPM_IS_DOCKER_IMAGE": false
}
Run mmpm open --env
to edit the variable values
config.js
/* Magic Mirror Config Sample
*
* By Michael Teeuw https://michaelteeuw.nl
* MIT Licensed.
*
* For more information on how you can configure this file
* See https://github.com/MichMich/MagicMirror#configuration
*
*/
var config = {
address: "0.0.0.0",
port: 8080,
basePath: "/",
ipWhitelist: [],
useHttps: false,
httpsPrivateKey: "",
httpsCertificate: "",
language: "de",
logLevel: ["INFO", "LOG", "WARN", "ERROR"],
timeFormat: 24,
units: "metric",
serverOnly: true,
modules: [
{
module: "alert",
},
{
module: "updatenotification",
position: "top_bar"
},
{
module: "clock",
position: "top_left"
},
{
module: "calendar",
header: "US Holidays",
position: "top_left",
config: {
calendars: [
{
symbol: "calendar-check",
url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics" }
]
}
},
{
module: "compliments",
position: "lower_third"
},
{
module: "currentweather",
position: "top_right",
config: {
location: "New York",
locationID: "", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
appid: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "weatherforecast",
position: "top_right",
header: "Weather Forecast",
config: {
location: "New York",
locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
appid: "YOUR_OPENWEATHER_API_KEY"
}
},
{
module: "newsfeed",
position: "bottom_bar",
config: {
feeds: [
{
title: "New York Times",
url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml"
}
],
showSourceTitle: true,
showPublishDate: true,
broadcastNewsFeeds: true,
broadcastNewsUpdates: true
}
},
]
};
/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}
So, issue created. Hope you can help me figure this out.
Thanks!
PhiL