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

    Posts

    Recent Best Controversial
    • RE: Error in the calendar module check logs for more details

      @sdetweil
      I’m sorry Sam, I didn’t figure out where I have to configure the
      mmFetchTimeout. Where is it located? Thanks

      posted in Troubleshooting
      N
      nowayto
    • RE: Error in the calendar module check logs for more details

      @sdetweil later I’ll try. The version is the last one

      posted in Troubleshooting
      N
      nowayto
    • Error in the calendar module check logs for more details

      Hello,
      I have a problem related to the basic calendar module.
      I use the private.ics from google but sometimes it can’t fetch data.
      It doesn’t happen regularly, only sometimes but this error keep me to keep the keyboard connected for use the CTRL+R function everytime it happen.
      It’s annoying because I hope to forget it completely and just using MM.
      I can reproduce the issue with CTRL+R, every 7/8 refreshes it happen.
      I could not refresh it forever but MM turn off and on every day so… it happen.

      My question is: is it a normal behaviour from google or is there something I did that cause the behaviour?
      I checked pihole also, thinking it could cause issues but it seem not related to it.

      As calendar I use the basic one and the EXT3

      Here is the log, thanks

      /home/MYMM/.pm2/logs/MagicMirror-error.log last 15 lines:
      0|mm | }
      0|mm | }
      0|mm | [2025-06-24 12:47:20.521] [ERROR] Calendar Error. Could not fetch calendar: https://calendar.google.com/calendar/ical/MYCAL.ics TypeError: fetch failed
      0|mm | at node:internal/deps/undici/undici:13502:13
      0|mm | at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
      0|mm | [cause]: AggregateError [ETIMEDOUT]:
      0|mm | at internalConnectMultiple (node:net:1139:18)
      0|mm | at internalConnectMultiple (node:net:1215:5)
      0|mm | at Timeout.internalConnectMultipleTimeout (node:net:1739:5)
      0|mm | at listOnTimeout (node:internal/timers:596:11)
      0|mm | at process.processTimers (node:internal/timers:529:7) {
      0|mm | code: ‘ETIMEDOUT’,
      0|mm | [errors]: [ [Error], [Error] ]
      0|mm | }
      0|mm | }

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @rkorell Again, thank you Sam.
      I know what you mean, I usually act as you said.
      I like to help other, in the subject where I have knowledge.
      So, thank you again

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil Ok but I wanna just offer a coffe for your kind and your time spent with that.

      Do you suggest me to fix the old magic mirror folder or just rm it?

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil
      Sam… I don’t know how to saying it.
      I figure out the issue.

      After your last message I tried what you suggest.
      With the default cfg I had no errors, with mine I had errors.

      So I checked again and again the config…
      and I find an underscore _ right at the start of the config

      npm config:check told me “no syntax errors” and that confusing me.

      When I edit it I use nano editor
      I do “sudo nano config.js” and I press CTRL + _ to jump at the 250 line.
      Might be one of the latest time I opened it and press _ a bit faster than CTRL and I add it for error.

      In addition I notice that when I open config.js with nano editor the green cursor is, clearly, at the start of the first line… EXACTLY on the undescore _ and it hides it.

      I’m really sorry for bothering you with that.
      How can I buy you a coffee ?
      Thanks

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil

      That’s incredible… I did it, everything goes good… no issues but when I start it

      npm start

      magicmirror@2.31.0 start
      npm run start:x11

      magicmirror@2.31.0 start:x11
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      [2025-05-11 22:44:21.593] [LOG] Starting MagicMirror: v2.31.0
      [2025-05-11 22:44:21.682] [LOG] Loading config …
      [2025-05-11 22:44:21.687] [LOG] config template file not exists, no envsubst
      [2025-05-11 22:44:23.250] [INFO] Checking config file /home/MYMIRR/MagicMirror/config/config.js …
      [2025-05-11 22:44:23.532] [INFO] Your configuration file doesn’t contain syntax errors :)
      [2025-05-11 22:44:23.535] [INFO] Checking modules structure configuration …
      [2025-05-11 22:44:23.824] [ERROR] _ is not defined

      Again this _ is not defined

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil
      Before writing here I made backups, locally and on github, like you taught me in the past :)

      Now I’ll try

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil
      I’m sure.I don’t think SolarPicture could be the problem.

      Yes, the error keep showing

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil

      installer didn’t failed, but this is the result now

      npm install

      magicmirror@2.31.0 postinstall
      npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
      "

      magicmirror@2.31.0 install-vendor
      echo "Installing vendor files …
      " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

      Installing vendor files …

      up to date in 7s

      magicmirror@2.31.0 install-fonts
      echo "Installing fonts …
      " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

      Installing fonts …

      up to date in 3s
      MagicMirror² installation finished successfully!

      magicmirror@2.31.0 prepare
      [ -f node_modules/.bin/husky ] && husky || echo no husky installed.

      up to date in 45s

      285 packages are looking for funding
      run npm fund for details

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil Thank you a lot Sam.

      I did everything but
      I have an [ERROR] _ is not defined

      magicmirror@2.31.0 start:x11
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      [2025-05-11 15:39:26.429] [LOG] Starting MagicMirror: v2.31.0
      [2025-05-11 15:39:26.527] [LOG] Loading config …
      [2025-05-11 15:39:26.537] [LOG] config template file not exists, no envsubst
      [2025-05-11 15:39:28.154] [INFO] Checking config file /home/MYMIRR/MagicM irror/config/config.js …
      [2025-05-11 15:39:28.478] [INFO] Your configuration file doesn’t contain syntax errors :)
      [2025-05-11 15:39:28.482] [INFO] Checking modules structure configuration …
      [2025-05-11 15:39:28.793] [ERROR] _ is not defined

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil

      which node gave me
      /home/MYMIRR/.nvm/versions/node/v22.15.0/bin/node

      n gave me
      node/20.18.1

      Use up/down arrow keys to select a version, return key to install, d to delete, q to quit

      nvm gave me

      Node Version Manager (v0.39.5)

      Note: refers to any version-like string nvm understands. This includes :

      • full or partial version numbers, starting with an optional “v” (0.10, v0.1.2 , v1)
      • default (built-in) aliases: node, stable, unstable, iojs, system
      • custom aliases you define with nvm alias foo

      followed by a lot of options

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil I’m sorry :(

      I did it what you suggest and config:check gave me a module error again. Different than one before

      npm run config:check

      magicmirror@2.31.0 config:check
      node js/check_config.js

      node:internal/modules/cjs/loader:1404
      throw err;
      ^

      Error: Cannot find module ‘ajv’
      Require stack:

      After “require stack” there are other lines, if you need it, tell me.
      Thanks

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil npm install results

      ~/MagicMirror $ npm install
      npm error code ENOTEMPTY
      npm error syscall rename
      npm error path /home/MYMIRR/MagicMirror/node_modules/es-abstract
      npm error dest /home/MYMIRR/MagicMirror/node_modules/.es-abstract-fSsKyNTi
      npm error errno -39
      npm error ENOTEMPTY: directory not empty, rename ‘/home/MYMIRR/MagicMirror/node_modules/es-abstract’ -> ‘/home/MYMIRR/MagicMirror/node_modules/.es-abstract-fSsKyNTi’
      npm error A complete log of this run can be found in: /home/MYMIRR/.npm/_logs/2025-05-10T06_40_55_661Z-debug-0.log

      Tried with sudo

      ~/MagicMirror $ sudo npm install
      npm error code EBADENGINE
      npm error engine Unsupported engine
      npm error engine Not compatible with your version of node/npm: magicmirror@2.31.0
      npm error notsup Not compatible with your version of node/npm: magicmirror@2.31.0
      npm error notsup Required: {“node”:“>=22.14.0”}
      npm error notsup Actual: {“npm”:“11.2.0”,“node”:“v20.18.1”}
      npm error A complete log of this run can be found in: /root/.npm/_logs/2025-05-10T06_41_52_949Z-debug-0.log

      npm seems to see an old version of nodejs but:

      ~/MagicMirror $ node -v
      v22.15.0

      I don’t know what happened.
      If it can help I had first problem after the MMM-SolarPicture
      but I’ve just installed it and configured it through config.js… nothing more than usual…

      but the actual behaviour is that pm2 status says it’s running, but on the monitor I see just the raspbian desktop

      │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
      ├────┼───────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0 │ mm │ default │ N/A │ fork │ 4311 │ 19s │ 64 │ online │ 0% │ 2.6mb │ ber… │ disabled │

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil

      Upgrade started - Sat May 10 00:06:51 CEST 2025
      system is Linux magicmirror2 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
      doing test run = true, NO updates will be applied!
      the os is PRETTY_NAME=“Raspbian GNU/Linux 11 (bullseye)” NAME=“Raspbian GNU/Linux” VERSION_ID=“11” VERSION=“11 (bullseye)” VERSION_CODENAME=bullseye ID=raspbian ID_LIK>
      architecture from dpkg is armhf
      ^[[96mCheck current Node installation …^[[0m
      ^[[0mNode currently installed. Checking version number.
      ^[[0mMinimum Node version: ^[[1mv22.14.0^[[0m
      ^[[0mInstalled Node version: ^[[1mv22.15.0^[[0m
      ^[[92mNo Node.js upgrade necessary.^[[0m
      ^[[96mCheck current NPM installation …^[[0m
      ^[[0mNPM currently installed. Checking version number.
      ^[[0mMinimum npm version: ^[[1mV10.9.2^[[0m
      ^[[0mInstalled npm version: ^[[1mV11.3.0^[[0m
      ^[[92mNo npm upgrade necessary.^[[0m

      saving custom.css
      remote name = origin
      upgrading from version 2.31.0 to 2.31.0
      fetching latest revisions
      git fetch rc=0
      current branch = master
      On branch master
      Your branch is up to date with ‘origin/master’.

      Untracked files:
      (use “git add …” to include in what will be committed)
      core
      errorcal.txt
      errorcal2.txt
      errorcal3.txt
      errorcal4.txt
      errorcal5.txt
      nohup.out
      run-start.sh
      splashscreen/

      nothing added to commit but untracked files present (use “git add” to track)
      no files different from github version

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil MM doesn’t work.

      I tried a config check but I have this error now.
      I tried to “npm install eslint -g” but the error persist

      npm run config:check

      magicmirror@2.31.0 config:check
      node js/check_config.js

      node:internal/modules/cjs/loader:1404
      throw err;
      ^

      Error: Cannot find module ‘eslint’
      Require stack:

      • /home/MYMIRR/MagicMirror/js/check_config.js
        at Module._resolveFilename (node:internal/modules/cjs/loader:1401:15)
        at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
        at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
        at Module._load (node:internal/modules/cjs/loader:1211:37)
        at TracingChannel.traceSync (node:diagnostics_channel:322:14)
        at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
        at Module.require (node:internal/modules/cjs/loader:1487:12)
        at require (node:internal/modules/helpers:135:16)
        at Object. (/home/MYMIRR/MagicMirror/js/check_config.js:6:20)
        at Module._compile (node:internal/modules/cjs/loader:1730:14) {
        code: ‘MODULE_NOT_FOUND’,
        requireStack: [ ‘/home/MYMIRR/MagicMirror/js/check_config.js’ ]
        }

      Node.js v22.15.0

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil I’m sorry for the question: that script?

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

      Thanks

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil Do you suggest to update manually or auto? Thanks

      posted in Troubleshooting
      N
      nowayto
    • RE: [ERROR] _ is not defined

      @sdetweil I didn’t update MM since I’ve installed it months ago, so I suppose it wasn’t that. Might be it updated automatically?

      I remember you told me to use a “temp fix” to solve a problem.
      Now I’ll follow your guide in the post to update it.
      Thanks

      posted in Troubleshooting
      N
      nowayto
    • [ERROR] _ is not defined

      Hi,
      I have an issue, appeared after MMM-SolarPicture installation but I don’t think it’s related to it. Maybe an error on my configuration.

      pm2 logs is this one below

      0|mm | [2025-05-08 21:00:29.772] [ERROR] _ is not defined
      0|mm | [2025-05-08 21:00:29.826] [ERROR] _ is not defined
      0|mm | [2025-05-08 21:01:53.233] [ERROR] _ is not defined
      0|mm | [2025-05-08 21:01:53.327] [ERROR] _ is not defined
      0|mm | [2025-05-08 21:03:16.264] [ERROR] _ is not defined
      0|mm | [2025-05-08 21:03:16.440] [ERROR] _ is not defined
      0|mm | [2025-05-08 21:04:39.584] [ERROR] _ is not defined
      0|mm | [2025-05-08 21:04:39.676] [ERROR] _ is not defined
      0|mm | sh: 1: ./node_modules/.bin/electron: not found
      0|mm | sh: 1: ./node_modules/.bin/electron: not found
      0|mm | sh: 1: sh: 1: ./node_modules/.bin/electron: not found
      0|mm | ./node_modules/.bin/electron: not found
      0|mm | sh: 1: ./node_modules/.bin/electron: not found
      0|mm | sh: 1: ./node_modules/.bin/electron: not found
      0|mm | sh: 1: ./node_modules/.bin/electron: not found

      0|mm | > magicmirror@2.31.0-develop start
      0|mm | > npm run start:x11
      0|mm | > magicmirror@2.31.0-develop start:x11
      0|mm | > DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
      0|mm | sh: 1: ./node_modules/.bin/electron: not found
      PM2 | App [mm:0] exited with code [0] via signal [SIGINT]
      PM2 | App [mm:0] starting in -fork mode-
      PM2 | App [mm:0] online
      0|mm | > magicmirror@2.31.0-develop start
      0|mm | > npm run start:x11
      0|mm | > magicmirror@2.31.0-develop start:x11
      0|mm | > DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
      0|mm | sh: 1: ./node_modules/.bin/electron: not found
      PM2 | App [mm:0] exited with code [0] via signal [SIGINT]
      PM2 | App [mm:0] starting in -fork mode-
      PM2 | App [mm:0] online

      npm run config:check gave me that result:

      magicmirror@2.31.0-develop config:check
      node js/check_config.js

      node:internal/modules/cjs/loader:1228
      throw err;
      ^

      Error: Cannot find module ‘eslint’
      Require stack:

      • /home/MYMIRRORNAME/MagicMirror/js/check_config.js
        at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
        at Module._load (node:internal/modules/cjs/loader:1051:27)
        at Module.require (node:internal/modules/cjs/loader:1311:19)
        at require (node:internal/modules/helpers:179:18)
        at Object. (/home/MYMIRRNAME/MagicMirror/js/check_config.js:6:20)
        at Module._compile (node:internal/modules/cjs/loader:1469:14)
        at Module._extensions…js (node:internal/modules/cjs/loader:1548:10)
        at Module.load (node:internal/modules/cjs/loader:1288:32)
        at Module._load (node:internal/modules/cjs/loader:1104:12)
        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) {
        code: ‘MODULE_NOT_FOUND’,
        requireStack: [ ‘/home/MYMIRRORNAME/MagicMirror/js/check_config.js’ ]
        }

      Node.js v20.18.1

      thank you for your help

      posted in Troubleshooting
      N
      nowayto
    • 1
    • 2
    • 3
    • 4
    • 2 / 4