MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Richard238
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    R
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 36
    • Posts 238
    • Groups 0

    Posts

    Recent Best Controversial
    • v2.18.0 update gave black screen, then nothing.

      MM said I was 122 commits behind.
      Ran the update script:

      bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
      

      Eeeeek, black screen! Searched forum, found this:
      https://forum.magicmirror.builders/topic/15240/black-screen/2?_=1641460034694

      Did as suggested:

      pi@magicmirror:~/MagicMirror $ npm run config:check
      
      
      > magicmirror@2.18.0 config:check
      > node js/check_config.js
      
      
      /home/pi/MagicMirror/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2359
      const require$1 = Module.createRequire((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('eslintrc.cjs', document.baseURI).href)));
                               ^
      
      TypeError: Module.createRequire is not a function
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2359:26)
          at Module._compile (internal/modules/cjs/loader.js:778:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
          at Module.load (internal/modules/cjs/loader.js:653:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
          at Function.Module._load (internal/modules/cjs/loader.js:585:3)
          at Module.require (internal/modules/cjs/loader.js:692:17)
          at require (internal/modules/cjs/helpers.js:25:18)
          at Object.<anonymous> (/home/pi/MagicMirror/node_modules/eslint/lib/cli-engine/cli-engine.js:33:5)
          at Module._compile (internal/modules/cjs/loader.js:778:30)
      

      https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

      pi@magicmirror:~/MagicMirror $ npm init -y

      Wrote to /home/pi/MagicMirror/package.json:
      
      {
        "name": "magicmirror",
        "version": "2.18.0",
        "description": "The open source modular smart mirror platform.",
        "main": "js/electron.js",
        "scripts": {
          "start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
          "start:dev": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js dev",
          "server": "node ./serveronly",
          "install": "echo \"Installing vendor files ...\n\" && cd vendor && npm install --loglevel=error",
          "install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error",
          "postinstall": "npm run install-fonts && echo \"MagicMirror installation finished successfully! \n\"",
          "test": "NODE_ENV=test jest -i --forceExit",
          "test:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text jest -i --forceExit",
          "test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit",
          "test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --forceExit",
          "test:unit": "NODE_ENV=test jest --selectProjects unit -i --forceExit",
          "test:prettier": "prettier . --check",
          "test:js": "eslint 'js/**/*.js' 'modules/default/**/*.js' 'clientonly/*.js' 'serveronly/*.js' 'translations/*.js' 'vendor/*.js' 'tests/**/*.js' 'config/*' --config .eslintrc.json",
          "test:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json",
          "test:calendar": "node ./modules/default/calendar/debug.js",
          "config:check": "node js/check_config.js",
          "lint:prettier": "prettier . --write",
          "lint:js": "eslint 'js/**/*.js' 'modules/default/**/*.js' 'clientonly/*.js' 'serveronly/*.js' 'translations/*.js' 'vendor/*.js' 'tests/**/*.js' 'config/*' --config .eslintrc.json --fix",
          "lint:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json --fix",
          "lint:staged": "pretty-quick --staged",
          "prepare": "[ -f node_modules/.bin/husky ] && husky install || echo no husky installed."
        },
        "repository": {
          "type": "git",
          "url": "git+https://github.com/MichMich/MagicMirror.git"
        },
        "keywords": [
          "magic mirror",
          "smart mirror",
          "mirror UI",
          "modular"
        ],
        "author": "Michael Teeuw",
        "contributors": [
          "https://github.com/MichMich/MagicMirror/graphs/contributors"
        ],
        "license": "MIT",
        "bugs": {
          "url": "https://github.com/MichMich/MagicMirror/issues"
        },
        "homepage": "https://magicmirror.builders",
        "devDependencies": {
          "eslint-config-prettier": "^8.3.0",
          "eslint-plugin-jest": "^25.3.0",
          "eslint-plugin-jsdoc": "^37.4.0",
          "eslint-plugin-prettier": "^4.0.0",
          "express-basic-auth": "^1.2.1",
          "husky": "^7.0.4",
          "jest": "^27.4.5",
          "jsdom": "^19.0.0",
          "lodash": "^4.17.21",
          "nyc": "^15.1.0",
          "playwright": "^1.17.1",
          "prettier": "^2.5.1",
          "pretty-quick": "^3.1.3",
          "sinon": "^12.0.1",
          "stylelint": "^14.2.0",
          "stylelint-config-prettier": "^9.0.3",
          "stylelint-config-standard": "^24.0.0",
          "stylelint-prettier": "^2.0.0",
          "suncalc": "^1.8.0"
        },
        "optionalDependencies": {
          "electron": "^16.0.5"
        },
        "dependencies": {
          "colors": "^1.4.0",
          "console-stamp": "^3.0.3",
          "digest-fetch": "^1.2.1",
          "eslint": "^8.5.0",
          "express": "^4.17.2",
          "express-ipfilter": "^1.2.0",
          "feedme": "^2.0.2",
          "helmet": "^4.6.0",
          "iconv-lite": "^0.6.3",
          "module-alias": "^2.2.2",
          "moment": "^2.29.1",
          "node-fetch": "^2.6.6",
          "node-ical": "^0.13.0",
          "socket.io": "^4.4.0"
        },
        "engines": {
          "node": ">=12"
        },
        "jest": {
          "verbose": true,
          "testTimeout": 10000,
          "projects": [
            {
              "displayName": "unit",
              "moduleNameMapper": {
                "logger": "<rootDir>/js/logger.js"
              },
              "testMatch": [
                "**/tests/unit/**/*.[jt]s?(x)"
              ],
              "testPathIgnorePatterns": [
                "<rootDir>/tests/unit/mocks"
              ]
            },
            {
              "displayName": "electron",
              "testMatch": [
                "**/tests/electron/**/*.[jt]s?(x)"
              ]
            },
            {
              "displayName": "e2e",
              "setupFilesAfterEnv": [
                "<rootDir>/tests/e2e/mock-console.js"
              ],
              "testMatch": [
                "**/tests/e2e/**/*.[jt]s?(x)"
              ],
              "modulePaths": [
                "<rootDir>/js/"
              ],
              "testPathIgnorePatterns": [
                "<rootDir>/tests/e2e/modules/mocks",
                "<rootDir>/tests/e2e/modules/basic-auth.js",
                "<rootDir>/tests/e2e/global-setup.js",
                "<rootDir>/tests/e2e/mock-console.js"
              ]
            }
          ]
        },
        "directories": {
          "test": "tests"
        }
      }
      
      
      pi@magicmirror:~/MagicMirror $ 
      
      pi@magicmirror:~/MagicMirror $ pm2 logs --lines=50
      [TAILING] Tailing last 50 lines for [all] processes (change the value with --lines option)
      /home/pi/.pm2/pm2.log last 50 lines:
      PM2        | 2021-12-22T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-23T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-23T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-24T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-24T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-25T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-25T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-26T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-26T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-27T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-27T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-28T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-28T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-29T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-29T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-30T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-30T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2021-12-31T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2021-12-31T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-01T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2022-01-01T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-02T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2022-01-02T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-03T13:52:37: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2022-01-03T13:52:37: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-04T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2022-01-04T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-05T13:52:36: PM2 log: [PM2] This PM2 is not UP TO DATE
      PM2        | 2022-01-05T13:52:36: PM2 log: [PM2] Upgrade to version 5.1.2
      PM2        | 2022-01-06T08:25:26: PM2 log: Stopping app:MagicMirror id:0
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:27: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:28: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:28: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:28: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:28: PM2 log: pid=32642 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:25:28: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
      PM2        | 2022-01-06T08:25:28: PM2 log: pid=32642 msg=process killed
      PM2        | 2022-01-06T08:31:27: PM2 log: App [MagicMirror:0] starting in -fork mode-
      PM2        | 2022-01-06T08:31:27: PM2 log: App [MagicMirror:0] online
      PM2        | 2022-01-06T08:33:57: PM2 log: Stopping app:MagicMirror id:0
      PM2        | 2022-01-06T08:33:58: PM2 log: pid=12095 msg=failed to kill - retrying in 100ms
      PM2        | 2022-01-06T08:33:58: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
      PM2        | 2022-01-06T08:33:58: PM2 log: pid=12095 msg=process killed
      PM2        | 2022-01-06T08:34:05: PM2 log: App [MagicMirror:0] starting in -fork mode-
      PM2        | 2022-01-06T08:34:05: PM2 log: App [MagicMirror:0] online
      
      /home/pi/.pm2/logs/MagicMirror-out.log last 50 lines:
      0|MagicMir | [06.01.2022 08:31.32.828] [LOG]   Module helper loaded: currentweather
      0|MagicMir | [06.01.2022 08:31.32.833] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:31.32.835] [LOG]   Module helper loaded: weatherforecast
      0|MagicMir | [06.01.2022 08:31.32.843] [LOG]   Loading module helpers ...
      0|MagicMir | [06.01.2022 08:31.32.845] [LOG]   No helper found for module: alert.
      0|MagicMir | [06.01.2022 08:31.32.847] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:31.32.849] [LOG]   Module helper loaded: updatenotification
      0|MagicMir | [06.01.2022 08:31.32.850] [LOG]   No helper found for module: clock.
      0|MagicMir | [06.01.2022 08:31.32.852] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:31.32.853] [LOG]   Module helper loaded: calendar
      0|MagicMir | [06.01.2022 08:31.32.855] [LOG]   No helper found for module: compliments.
      0|MagicMir | [06.01.2022 08:31.32.857] [LOG]   No helper found for module: MMM-doomsDay.
      0|MagicMir | [06.01.2022 08:31.32.859] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:31.32.860] [LOG]   Module helper loaded: currentweather
      0|MagicMir | [06.01.2022 08:31.32.862] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:31.32.863] [LOG]   Module helper loaded: weatherforecast
      0|MagicMir | [06.01.2022 08:31.33.522] [LOG]   Launching application.
      0|MagicMir | 
      0|MagicMir | > magicmirror@2.18.0 start
      0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMir | 
      0|MagicMir | [06.01.2022 08:34.09.207] [LOG]   Starting MagicMirror: v2.18.0
      0|MagicMir | [06.01.2022 08:34.09.220] [LOG]   Loading config ...
      0|MagicMir | [06.01.2022 08:34.09.232] [LOG]   Loading module helpers ...
      0|MagicMir | [06.01.2022 08:34.09.238] [LOG]   No helper found for module: alert.
      0|MagicMir | [06.01.2022 08:34.09.272] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.275] [LOG]   Module helper loaded: updatenotification
      0|MagicMir | [06.01.2022 08:34.09.279] [LOG]   No helper found for module: clock.
      0|MagicMir | [06.01.2022 08:34.09.600] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.603] [LOG]   Module helper loaded: calendar
      0|MagicMir | [06.01.2022 08:34.09.606] [LOG]   No helper found for module: compliments.
      0|MagicMir | [06.01.2022 08:34.09.609] [LOG]   No helper found for module: MMM-doomsDay.
      0|MagicMir | [06.01.2022 08:34.09.614] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.616] [LOG]   Module helper loaded: currentweather
      0|MagicMir | [06.01.2022 08:34.09.620] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.622] [LOG]   Module helper loaded: weatherforecast
      0|MagicMir | [06.01.2022 08:34.09.630] [LOG]   Loading module helpers ...
      0|MagicMir | [06.01.2022 08:34.09.632] [LOG]   No helper found for module: alert.
      0|MagicMir | [06.01.2022 08:34.09.634] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.635] [LOG]   Module helper loaded: updatenotification
      0|MagicMir | [06.01.2022 08:34.09.637] [LOG]   No helper found for module: clock.
      0|MagicMir | [06.01.2022 08:34.09.638] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.640] [LOG]   Module helper loaded: calendar
      0|MagicMir | [06.01.2022 08:34.09.641] [LOG]   No helper found for module: compliments.
      0|MagicMir | [06.01.2022 08:34.09.643] [LOG]   No helper found for module: MMM-doomsDay.
      0|MagicMir | [06.01.2022 08:34.09.645] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.646] [LOG]   Module helper loaded: currentweather
      0|MagicMir | [06.01.2022 08:34.09.648] [LOG]   Initializing new module helper ...
      0|MagicMir | [06.01.2022 08:34.09.649] [LOG]   Module helper loaded: weatherforecast
      0|MagicMir | [06.01.2022 08:34.10.239] [LOG]   Launching application.
      
      /home/pi/.pm2/logs/MagicMirror-error.log last 50 lines:
      0|MagicMir | - 
      0|MagicMir | [06.01.2022 08:34.09.653] [ERROR] App threw an error during load
      0|MagicMir | [06.01.2022 08:34.09.658] [ERROR] Error: Cannot find module 'mysql'
      0|MagicMir | Require stack:
      0|MagicMir | - /home/pi/MagicMirror/modules/MMM-MysqlQuery/node_helper.js
      0|MagicMir | - /home/pi/MagicMirror/js/app.js
      0|MagicMir | - /home/pi/MagicMirror/js/electron.js
      0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      0|MagicMir | - 
      0|MagicMir |     at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
      0|MagicMir |     at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
      0|MagicMir |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
      0|MagicMir |     at Module._load (node:internal/modules/cjs/loader:785:27)
      0|MagicMir |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
      0|MagicMir |     at Module.require (node:internal/modules/cjs/loader:1012:19)
      0|MagicMir |     at require (node:internal/modules/cjs/helpers:94:18)
      0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-MysqlQuery/node_helper.js:10:13)
      0|MagicMir |     at Module._compile (node:internal/modules/cjs/loader:1116:14)
      0|MagicMir |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
      0|MagicMir | [06.01.2022 08:34.09.660] [ERROR] Whoops! There was an uncaught exception...
      **0|MagicMir | [06.01.2022 08:34.09.672] [ERROR] Error: Cannot find module 'mysql'**
      0|MagicMir | Require stack:
      0|MagicMir | - /home/pi/MagicMirror/modules/MMM-MysqlQuery/node_helper.js
      0|MagicMir | - /home/pi/MagicMirror/js/app.js
      0|MagicMir | - /home/pi/MagicMirror/js/electron.js
      0|MagicMir | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      0|MagicMir | - 
      0|MagicMir |     at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
      0|MagicMir |     at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1128)
      0|MagicMir |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
      0|MagicMir |     at Module._load (node:internal/modules/cjs/loader:785:27)
      0|MagicMir |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
      0|MagicMir |     at Module.require (node:internal/modules/cjs/loader:1012:19)
      0|MagicMir |     at require (node:internal/modules/cjs/helpers:94:18)
      0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-MysqlQuery/node_helper.js:10:13)
      0|MagicMir |     at Module._compile (node:internal/modules/cjs/loader:1116:14)
      0|MagicMir |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10) {
      0|MagicMir |   code: 'MODULE_NOT_FOUND',
      0|MagicMir |   requireStack: [
      0|MagicMir |     '/home/pi/MagicMirror/modules/MMM-MysqlQuery/node_helper.js',
      0|MagicMir |     '/home/pi/MagicMirror/js/app.js',
      0|MagicMir |     '/home/pi/MagicMirror/js/electron.js',
      0|MagicMir |     '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
      0|MagicMir |     undefined
      0|MagicMir |   ]
      0|MagicMir | }
      0|MagicMir | [06.01.2022 08:34.09.674] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      0|MagicMir | [06.01.2022 08:34.09.675] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      0|MagicMir | [12904:0106/083411.118170:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|MagicMir | [12927:0106/083411.471839:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      

      pi@magicmirror:~/MagicMirror $ npm install mysql

      npm WARN EBADENGINE Unsupported engine { package: 'magicmirror@2.18.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@es-joy/jsdoccomment@0.13.0',
      npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@eslint/eslintrc@1.0.5',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/experimental-utils@5.8.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/scope-manager@5.8.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/types@5.8.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/typescript-estree@5.8.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: '@typescript-eslint/visitor-keys@5.8.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'commander@8.3.0',
      npm WARN EBADENGINE   required: { node: '>= 12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'comment-parser@1.3.0',
      npm WARN EBADENGINE   required: { node: '>= 12.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'data-urls@3.0.1',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'domexception@4.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'eslint@8.5.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'eslint-plugin-jest@25.3.0',
      npm WARN EBADENGINE   required: { node: '^12.13.0 || ^14.15.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'eslint-plugin-jsdoc@37.4.0',
      npm WARN EBADENGINE   required: { node: '^12 || ^14 || ^16 || ^17' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'eslint-scope@7.1.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'eslint-visitor-keys@3.1.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'espree@9.2.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'html-encoding-sniffer@3.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'husky@7.0.4',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'jsdoc-type-pratt-parser@2.0.0',
      npm WARN EBADENGINE   required: { node: '>=12.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'jsdom@19.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'playwright@1.17.1',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'playwright-core@1.17.1',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'postcss-safe-parser@6.0.0',
      npm WARN EBADENGINE   required: { node: '>=12.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'stylelint@14.2.0',
      npm WARN EBADENGINE   required: { node: '^12.20.0 || ^14.13.1 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'stylelint-config-prettier@9.0.3',
      npm WARN EBADENGINE   required: { node: '>= 12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'stylelint-prettier@2.0.0',
      npm WARN EBADENGINE   required: { node: '^12.22.0 || ^14.17.0 || >=16.0.0' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'tr46@3.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'w3c-xmlserializer@3.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'webidl-conversions@7.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'whatwg-encoding@2.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'whatwg-mimetype@3.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'whatwg-url@10.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN EBADENGINE Unsupported engine { package: 'xml-name-validator@4.0.0',
      npm WARN EBADENGINE   required: { node: '>=12' },
      npm WARN EBADENGINE   current: { node: 'v10.24.1', npm: '7.24.2' } }
      npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
      
      added 494 packages, and audited 761 packages in 6m
      
      66 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      pi@magicmirror:~/MagicMirror $ 
      
      

      Now when I start MM, I get just a blank page.

      pi@magicmirror:~/MagicMirror $ pm2 start MagicMirror
      [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
      [PM2] [MagicMirror](0) ✓
      [PM2] Process successfully started
      ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
      │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
      ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
      │ 0  │ MagicMirror        │ fork     │ 45   │ online    │ 0%       │ 2.6mb    │
      └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
      pi@magicmirror:~/MagicMirror $ 
      
      

      Hope it’s a simple fix, thank you.

      posted in Troubleshooting
      R
      Richard238
    • MMM-MQTT shows no data

      MM is on IP.21
      Another Pi (IP.35) has a timestamp node sending its data to Amazon IoT
      Tested, working, all ok.
      Picked up ok on Node-red another Pi, (IP.34)

      Added MMM-MQTT.

                  {
                      address: 'random_numbers-ats.iot.eu-west-2.amazonaws.com',          // Server address or IP address
                      port: '8883',                  // Port number if other than default
                      ca: 'random_numbers-random_numbers-random_numbers-certificate.pem.crt.txt', // Path to trusted CA certificate file (optional)
                      // clientId: 'mirror',         // Custom MQTT client ID (optional)
                      //user: 'user',                  // Leave out for no user
                      //password: 'password',          // Leave out for no password
                      subscriptions: [
                          {
                              topic: 'nr_test_1', // Topic to look for
                              label: 'Timestamp', // Displayed in front of value
      

      Address - tried IP of other 'Pi. (.35) Tried Amazon IoT address
      Port - Tried 1883 and 8883
      Does MMM-MQTT not need the private key as well as the ca cert?
      (I’m not using user and password.)

      MM shows only MQTT and Timestamp, but no live data.

      What have I missed on the setup for this, please?

      posted in Troubleshooting
      R
      Richard238
    • RE: How can I ensure I get regular update notifications?

      @sdetweil

      Done! :thumbs_up:

      https://github.com/MichMich/MagicMirror/issues/2644

      posted in Troubleshooting
      R
      Richard238
    • RE: How can I ensure I get regular update notifications?

      Likewise, I also get:
      origin https://github.com/MichMich/MagicMirror.git (fetch)
      origin https://github.com/MichMich/MagicMirror.git (push)

      And I received no notification of the upgrade to 2.15, or to 2.16.

      Thank you.

      posted in Troubleshooting
      R
      Richard238
    • How can I ensure I get regular update notifications?

      Magic Mirror - long time, no updates I thought, so ran the update script with the apply suffix.
      Without the apply suffix, I was 4130 commits behind!

      Update seems to have worked, version now shows as 2.16.0
      Current Weather not showing though?
      (Seems it needed a bit longer to load, it’s OK now.)

      And how can I ensure I get regular update notifications?
      config is set to get update notifications:

      { module: "updatenotification", position: "top_bar" },

      Thank you.

      posted in Troubleshooting
      R
      Richard238
    • Should I update NPM to v 7.5.4 ?

      Just run an update to MM and received this.

      New major version of npm available! 6.14.8 → 7.5.4
      Changelog: https://github.com/npm/cli/releases/tag/v7.5.4
      Run npm install -g npm to update!

      Should I apply that update, is there anything to be aware of first?

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      @sdetweil said in After update, nothing happens.:

      @Richard238 updatenotification will continue to advise things that have changed…

      A month on, and I’ve not had any update prompts, is that correct?
      Thank you.

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      @sdetweil

      We found a bug and a fix. And it was all done in a day or so! :)

      Looks like a great result all round then where we’ve all learned something.

      Thank you for your help.
      Richard.

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      @sdetweil said in After update, nothing happens.:

      @Richard238 just FYI we were able to reproduce your problem on Jessie. So os upgrade, or downgrade electron were the only options

      Does that mean a change to the documentation, or have the install/update script(s) check for OS level before proceeding? (Or both, of course.)
      There must be many, many MM installs out there running on old OSs.

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      @sdetweil said in After update, nothing happens.:

      @Richard238 all of the messages are normal.
      maybe u started w pm2 before

      Rebooted, no change. Not a worry, just curious.
      How though do I get MM to auto start at boot?

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      @sdetweil

      rue" in Electron 9.  For more information please check https://github.com/electron/electron/issues/18397
      [02.01.2021 14:46.31.149] [LOG]   Create new calendar fetcher for url: https://calendar.google.com/calendar/##################################### Interval: 300000
      [02.01.2021 14:46.31.360] [LOG]   Create new calendar fetcher for url: https://calendar.google.com/calendar/##################################### Interval: 300000
      [02.01.2021 14:46.31.366] [LOG]   Create new news fetcher for url: http://feeds.reuters.com/reuters/UKTopNews - Interval: 120000
      [02.01.2021 14:46.31.437] [LOG]   Create new news fetcher for url: http://feeds.skynews.com/feeds/rss/world.xml - Interval: 120000
      [02.01.2021 14:46.31.447] [INFO]  Checking git for module: MMM-doomsDay
      [02.01.2021 14:46.31.455] [INFO]  Checking git for module: MMM-MysqlQuery
      [02.01.2021 14:46.32.473] [INFO]  Newsfeed-Fetcher: Broadcasting 10 items.
      [02.01.2021 14:46.33.722] [INFO]  Calendar-Fetcher: Broadcasting 4 events.
      [02.01.2021 14:46.35.400] [INFO]  Calendar-Fetcher: Broadcasting 6 events.
      [02.01.2021 14:48.32.644] [INFO]  Newsfeed-Fetcher: Broadcasting 10 items.
      
      ipWhitelist: [],
      	//ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.1/120",],
      
      	language: 'en',
      	logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
      	timeFormat: 24,
      

      I guess changing it to logLevel: [] ?

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      I copied my config.js into the new install, and deleted all the old commented-out module junk I was no longer using.
      Added the 'loglevel: [… ’ line, doesn’t yet seem to have made any difference. Reboot required perhaps?

      2.14? Package.Json = “version” : “2.14.0”

      Electron is 8.5

      pi@magicmirror:~/MagicMirror $ grep version node_modules/electron/package.json
        "version": "8.5.5"
      pi@magicmirror:~/MagicMirror $ 
      
      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      @Richard238 said in After update, nothing happens.:

      Old MM FTPd to NAS.
      Installing new OS now, on a different SD card so I can go back if absolutely necessary.
      My plan is to build a new MM as the old one had a lot of clutter - old unused modules etc.
      Taking the opportunity for a fresh start. I’ll let you know how it goes…

      14:24
      All done.
      MM back just as it was with custom CSS, but this time using only the modules installed that I actually need.
      MM accessible from any LAN attached device as I don’t have it setup as a mirror anywhere.
      The terminal window is showing a constatnt log of what’s happening. Is that correct - I don’t remember it from MM_OLD?

      And will the update notification module do anything now, or do I need to do anything?

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      Old MM FTPd to NAS.
      Installing new OS now, on a different SD card so I can go back if absolutely necessary.
      My plan is to build a new MM as the old one had a lot of clutter - old unused modules etc.
      Taking the opportunity for a fresh start. I’ll let you know how it goes…

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      @sdetweil said in After update, nothing happens.:

      npm install electron@6.1.12

      Sam, you’re a genius!

      That’s fixed it.
      This will only happen again in the not too distant future I’m sure, so would I be better off installing a newer OS?
      And then how do I recreate my MM on said new OS?

      I’m going to logoff for now, thanks again for your help today.
      More tomorrow I’m sure.
      Kind regards,
      Richard.

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      pi@pi_mirror:~ $ lsb_release -a
      No LSB modules are available.
      Distributor ID: Raspbian
      Description: Raspbian GNU/Linux 8.0 (jessie)
      Release: 8.0
      Codename: jessie
      pi@pi_mirror:~ $

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      @sdetweil said in After update, nothing happens.:

      grep version node_modules/electron/package.json

      pi@pi_mirror:~/MagicMirror__RL1 $ grep version node_modules/electron/package.json
      “type”: “version”,
      “version”: “8.5.3”
      pi@pi_mirror:~/MagicMirror__RL1 $

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.
      pi@pi_mirror:~ $ pm2 stop all
      [PM2] Applying action stopProcessId on app [all](ids: 0)
      [PM2] [mm](0) ✓
      ┌──────┬──────┬─────────┬───┬─────┬────────┐
      │ Name │ mode │ status  │ ↺ │ cpu │ memory │
      ├──────┼──────┼─────────┼───┼─────┼────────┤
      │ mm   │ fork │ stopped │ 0 │ 0%  │ 0 B    │
      └──────┴──────┴─────────┴───┴─────┴────────┘
       Use `pm2 show <id|name>` to get more details about an app
      pi@pi_mirror:~ $ cd ~/MagicMirror__RL1
      pi@pi_mirror:~/MagicMirror__RL1 $ git pull origin develop
      remote: Enumerating objects: 8, done.
      remote: Counting objects: 100% (8/8), done.
      remote: Compressing objects: 100% (8/8), done.
      remote: Total 8 (delta 1), reused 0 (delta 0), pack-reused 0
      Unpacking objects: 100% (8/8), done.
      From https://github.com/MichMich/MagicMirror
       * branch            develop    -> FETCH_HEAD
         a4ab0cb..da00c16  develop    -> origin/develop
      Updating a4ab0cb..da00c16
      Fast-forward
       CHANGELOG.md | 1 +
       js/module.js | 2 +-
       2 files changed, 2 insertions(+), 1 deletion(-)
      pi@pi_mirror:~/MagicMirror__RL1 $ npm install --only=prod
      
      > magicmirror@2.14.0-develop install /home/pi/MagicMirror__RL1
      > echo "Installing vendor files ...
      " && cd vendor && npm install --loglevel=error
      
      Installing vendor files ...
      
      audited 24 packages in 1.991s
      
      1 package is looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
      
      > magicmirror@2.14.0-develop postinstall /home/pi/MagicMirror__RL1
      > npm run install-fonts && echo "MagicMirror installation finished successfully! 
      "
      
      
      > magicmirror@2.14.0-develop install-fonts /home/pi/MagicMirror__RL1
      > echo "Installing fonts ...
      " && cd fonts && npm install --loglevel=error
      
      Installing fonts ...
      
      audited 1 package in 1.03s
      found 0 vulnerabilities
      
      MagicMirror installation finished successfully! 
      
      audited 1149 packages in 36.561s
      
      16 packages are looking for funding
        run `npm fund` for details
      
      found 1 low severity vulnerability
        run `npm audit fix` to fix them, or `npm audit` for details
      pi@pi_mirror:~/MagicMirror__RL1 $ npm start
      
      > magicmirror@2.14.0-develop start /home/pi/MagicMirror__RL1
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      /home/pi/MagicMirror__RL1/node_modules/electron/dist/electron: /lib/arm-linux-gnueabihf/libdbus-1.so.3: no version information available (required by /home/pi/MagicMirror__RL1/node_modules/electron/dist/electron)
      pi@pi_mirror:~/MagicMirror__RL1 $ 
      
      
      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      @sdetweil

      Should I stop that before doing this
      "git pull origin develop / npm install --only=prod / npm start "

      in the old MM?

      posted in Troubleshooting
      R
      Richard238
    • RE: After update, nothing happens.

      I just powered it off, and this time it’s booted to the default MM with US Holidays.

      Does that help, what should I try next?

      posted in Troubleshooting
      R
      Richard238
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 11
    • 12
    • 6 / 12