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

    Posts

    Recent Best Controversial
    • RE: Error updating MM

      @sdetweil Thanks for the help! Used force to re-install MagicMirror again but still had an electron issue so I deleted the entier node_modules director as wel as the package_lock file and re-installed the modules. Then I had an error with MMM-MyCalendar which I fixed using the advice from here: https://github.com/jclarke0000/MMM-MyCalendar/issues/40

      Most importantly everything works just fine now :) Thanks again!

      posted in Troubleshooting
      K
      kevmang
    • RE: Error updating MM

      @sdetweil Thanks for your advice. I’ve completely removed npm and node and that solved the errors when installing but MM still doesn’t appear. Here is the log from the install:

      pi@raspberrypi:~$ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages will be REMOVED:
        nodejs*
      0 upgraded, 0 newly installed, 1 to remove and 401 not upgraded.
      After this operation, 177 MB disk space will be freed.
      (Reading database ... 100354 files and directories currently installed.)
      Removing nodejs (18.18.0-1nodesource1) ...
      dpkg: warning: while removing nodejs, directory '/usr/lib/node_modules' not empty so not removed
      Processing triggers for man-db (2.8.5-2) ...
      Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
      Hit:2 http://archive.raspberrypi.org/debian buster InRelease
      Reading package lists... Done
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      ca-certificates is already the newest version (20200601~deb10u2).
      curl is already the newest version (7.64.0-4+deb10u6).
      gnupg is already the newest version (2.2.12-1+rpi1+deb10u1).
      0 upgraded, 0 newly installed, 0 to remove and 401 not upgraded.
      deb [  signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
      Get:1 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB]
      Get:2 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages [5,267 B]
      Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
      Hit:4 http://archive.raspberrypi.org/debian buster InRelease
      Fetched 17.4 kB in 1s (15.1 kB/s)
      Reading package lists... Done
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following NEW packages will be installed:
        nodejs
      0 upgraded, 1 newly installed, 0 to remove and 401 not upgraded.
      Need to get 0 B/26.8 MB of archives.
      After this operation, 177 MB of additional disk space will be used.
      Selecting previously unselected package nodejs.
      (Reading database ... 94730 files and directories currently installed.)
      Preparing to unpack .../nodejs_18.18.0-1nodesource1_armhf.deb ...
      Unpacking nodejs (18.18.0-1nodesource1) ...
      Setting up nodejs (18.18.0-1nodesource1) ...
      Processing triggers for man-db (2.8.5-2) ...
      doing test run = false
      update log will be in /home/pi/MagicMirror/installers/upgrade.log
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v18.18.0
      No Node.js upgrade necessary.
      Check current NPM installation ...
      NPM currently installed. Checking version number.
      Minimum npm version: V9.8.1
      Installed npm version: V9.8.1
      No npm upgrade necessary.
      
      saving custom.css
      local version 2.25.0 already same as master 2.25.0
      restoring custom.css
      
      posted in Troubleshooting
      K
      kevmang
    • Error updating MM

      Hi Everyone

      My MM upgrade seems to have hit abit of a snag. Here is the log file after trying to update. The error I’m getting seems to be a little bit different to the other ones posted here (but root cause probably the same). Does anyone have any tips on how to get my MM running again?

      pi@raspberrypi:~/MagicMirror/modules$ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"  force
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages were automatically installed and are no longer required:
        libc-ares2 libuv1 rpi-eeprom-images
      Use 'sudo apt autoremove' to remove them.
      The following packages will be REMOVED:
        nodejs*
      0 upgraded, 0 newly installed, 1 to remove and 404 not upgraded.
      After this operation, 185 MB disk space will be freed.
      (Reading database ... 100567 files and directories currently installed.)
      Removing nodejs (20.8.0-1nodesource1) ...
      dpkg: warning: while removing nodejs, directory '/usr/lib/node_modules' not empty so not removed
      Processing triggers for man-db (2.8.5-2) ...
      Hit:1 http://archive.raspberrypi.org/debian buster InRelease
      Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
      Reading package lists... Done
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      ca-certificates is already the newest version (20200601~deb10u2).
      curl is already the newest version (7.64.0-4+deb10u6).
      gnupg is already the newest version (2.2.12-1+rpi1+deb10u1).
      The following packages were automatically installed and are no longer required:
        libc-ares2 libuv1 rpi-eeprom-images
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 404 not upgraded.
      deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main
      Get:1 https://deb.nodesource.com/node_18.x nodistro InRelease [12.1 kB]
      Get:2 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages [5,267 B]
      Hit:3 http://archive.raspberrypi.org/debian buster InRelease
      Hit:4 http://raspbian.raspberrypi.org/raspbian buster InRelease
      Fetched 17.4 kB in 34s (507 B/s)
      Reading package lists... Done
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages were automatically installed and are no longer required:
        libc-ares2 libuv1 rpi-eeprom-images
      Use 'sudo apt autoremove' to remove them.
      The following NEW packages will be installed:
        nodejs
      0 upgraded, 1 newly installed, 0 to remove and 404 not upgraded.
      Need to get 0 B/26.8 MB of archives.
      After this operation, 177 MB of additional disk space will be used.
      Selecting previously unselected package nodejs.
      (Reading database ... 94745 files and directories currently installed.)
      Preparing to unpack .../nodejs_18.18.0-1nodesource1_armhf.deb ...
      Unpacking nodejs (18.18.0-1nodesource1) ...
      Setting up nodejs (18.18.0-1nodesource1) ...
      Processing triggers for man-db (2.8.5-2) ...
      doing test run = false
      update log will be in /home/pi/MagicMirror/installers/upgrade.log
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v18.18.0
      Installed Node version: v16.11.1
      Node should be upgraded.
      Installing Node.js ...
      gpg: WARNING: unsafe ownership on homedir '/home/pi/.gnupg'
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following packages were automatically installed and are no longer required:
        libc-ares2 libuv1 rpi-eeprom-images
      Use 'sudo apt autoremove' to remove them.
      The following packages will be upgraded:
        nodejs
      1 upgraded, 0 newly installed, 0 to remove and 404 not upgraded.
      Need to get 0 B/27.0 MB of archives.
      After this operation, 5,819 kB of additional disk space will be used.
      apt-listchanges: Reading changelogs...
      (Reading database ... 100369 files and directories currently installed.)
      Preparing to unpack .../nodejs_20.5.1-deb-1nodesource1_armhf.deb ...
      Unpacking nodejs (20.5.1-deb-1nodesource1) over (18.18.0-1nodesource1) ...
      Setting up nodejs (20.5.1-deb-1nodesource1) ...
      Processing triggers for man-db (2.8.5-2) ...
      node version is
      Node.js installation Done! version=v16.11.1
      force: line 240: [: too many arguments
      Check current NPM installation ...
      NPM currently installed. Checking version number.
      Minimum npm version: V9.8.1
      Installed npm version: V8.0.0
      npm should be upgraded.
      Installing npm ...
      E: Unable to correct problems, you have held broken packages.
      npm ERR! code EBADENGINE
      npm ERR! engine Unsupported engine
      npm ERR! engine Not compatible with your version of node/npm: npm@9.8.1
      npm ERR! notsup Not compatible with your version of node/npm: npm@9.8.1
      npm ERR! notsup Required: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"}
      npm ERR! notsup Actual:   {"npm":"8.0.0","node":"v16.11.1"}
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /root/.npm/_logs/2023-10-04T14_24_00_147Z-debug.log
      npm installation Done! version=V8.0.0
      
      saving custom.css
      upgrading from version 2.25.0 to 2.25.0
      fetching latest revisions
      updating MagicMirror runtime, please wait
      npm ERR! code EBADENGINE
      npm ERR! engine Unsupported engine
      npm ERR! engine Not compatible with your version of node/npm: magicmirror@2.25.0
      npm ERR! notsup Not compatible with your version of node/npm: magicmirror@2.25.0
      npm ERR! notsup Required: {"node":">=18"}
      npm ERR! notsup Actual:   {"npm":"8.0.0","node":"v16.11.1"}
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2023-10-04T14_24_06_797Z-debug.log
      Checking for modules with removed libraries
      processing dependency changes for active modules with package.json files
      
      posted in Troubleshooting
      K
      kevmang
    • Issue with default Weather module

      Hi There

      I’m getting an error wiith the default weather module after updating to the latest version of MM. I tested my API key manually and it works.

      This is the error message, any suggestions?

      [15.10.2022 22:06.59.726] [LOG]   Sockets connected & modules started ...
      [15.10.2022 22:06.59.805] [LOG]   Launching application.
      [15.10.2022 22:07.00.313] [ERROR] ERROR! Could not validate main module js file.
      [15.10.2022 22:07.00.315] [ERROR] /home/pi/MagicMirror/modules/default/weather/weather.js:159
                              currentWeather: this.weatherProvider?.currentWeatherObject?.simpleClone() ?? null,
                                                                   ^
      
      SyntaxError: Unexpected token .
          at Module._compile (internal/modules/cjs/loader.js:722:23)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
          at Module.load (internal/modules/cjs/loader.js:645:32)
          at Function.Module._load (internal/modules/cjs/loader.js:560:12)
          at Module.require (internal/modules/cjs/loader.js:685:19)
          at require (internal/modules/cjs/helpers.js:16:16)
      

      This is what my config looks like (API key removed):

      		{
      			"module": "weather",
      			"disabled": true,
      			"header": "Weather In Doncaster, AU",
      			"position": "top_right",
      			"config": {
      				"apiKey": "XXXXXXXXX",
      				"weatherEndpoint": "/weather",
      				"locationID": "2168607",
      				"location": "Melbourne,Australia",
      				"weatherProvider": "openweathermap",
      				"type": "current",
      				"degreeLabel": true,
      				"onlyTemp": false,
      				"showHumidity": true
      			}
      		},
      		{
      			"module": "weather",
      			"disabled": true,
      			"header": "Forecast In",
      			"position": "top_right",
      			"config": {
      				"apiKey": "XXXXX",
      				"weatherEndpoint": "/forecast",
      				"locationID": "2168607",
      				"location": "Melbourne,Australia",
      				"weatherProvider": "openweathermap",
      				"type": "forecast",
      				"degreeLabel": true,
      				"onlyTemp": false,
      				"showHumidity": false,
      				roundTemp: true,
      				showPrecipitationAmount: true,
      				colored: false,
      				tableClass: "small",
      				maxNumberOfDays: 5
      			}
      		},
      
      posted in Troubleshooting
      K
      kevmang
    • RE: MMM-Strava

      Great app @ianperrin. Looks slick on the mirror too!

      posted in Health
      K
      kevmang
    • 1 / 1