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

    Posts

    Recent Best Controversial
    • RE: Calendar - Past Events are a different color/shade

      @roysim11 See the css in the calendar module. If this is Ext3 you’ll find this:

      .CX3 .event.passed {
        filter: brightness(0.8) grayscale(0.5);
        opacity:0.5;	
      }
      

      Then for example to this:

      .CX3 .event.passed {
      /*  filter: brightness(0.8) grayscale(0.5);
        opacity:0.5;	*/
      }
      

      Cheers,
      Chris

      posted in Troubleshooting
      C
      chrisfr1976
    • RE: MMM-ShellyPV

      @SuVo If you want to run both modules in parallel mode you need of course each module separate: So MMM-ShellyStatusTable and MMM-ShellyPV is needed in the modules folder and config.js file.

      You might discover some error messages during startup. The node_helper.js is nearly the same. But the errors causes no trouble.

      But I’ve just updated the whole module. I wanted to integrate the table in the MMM-ShellyPV module. See the modifications here: ShellyPVUpdate

      I think you’ll like it.

      posted in Utilities
      C
      chrisfr1976
    • RE: MMM-ShellyPV

      I’ve fixed an issue, when the power gets a negative value if the solar panel are producing. I couldn’t test this last night g

      Now it should be even better than before.

      BR Chris

      posted in Utilities
      C
      chrisfr1976
    • MMM-ShellyPV

      Hello,

      After creating my first Shelly MMM module, I knew it was time for an upgrade. I wanted something with a more polished, visually appealing look than a basic table. Introducing my new module:

      ShellyPV

      Example:
      ShellyPV

      This module can also more or less replace the MMM-ShellyStatusTable. If a device is switched on or off it is dynamic displayed in the list.

      Bild Text

      Give it a try and give me Star ;)

      Cheers,
      Chris.

      posted in Utilities
      C
      chrisfr1976
    • RE: I can't for the love of god understand what's wrong with my config

      @bougle
      Try

      
      let config = {address: "0.0.0.0", …….
      
      

      And

      
      url: "http://0.0.0.0:8080/modules/calendars……..
      
      

      Worked for me.

      Br Chris

      posted in Tutorials
      C
      chrisfr1976
    • RE: Wireless sensor

      @Frossion1996 Hi,

      Im using this Sensor:

      Temp2IoT

      A little “build yourself” but the result is perfect. I’m using an iFrame to show it on my mirror.

      With the Arduino IDE is was also able to adjust it a little bit to my belongings (transparent background and a little size adjustments).

      This project is really amazing. In the summer I can directly see in the morning if I can jump directly into the pool.

      Chris.

      posted in Hardware
      C
      chrisfr1976
    • MMM-ShellyStatusTable

      Hello,

      finally I finished my first MM-module. I was struggling with the existing shelly modules so I decided to create a new one which uses only the cloud-api in order to be independent from the device itself.

      MMM-ShellyStatusTable

      The MMM-ShellyStatusTable module displays the switch status and power consumption of multiple Shelly devices in a table on the MagicMirror², including a total consumption sum. It regularly updates the data via the Shelly Cloud API Gen 1 and Gen 2+. So it should be independed from the devices in your smart home.

      It is currently hard to say if every device is considered correctly. I have the following devices and it works:

      • Shelly Plug / PlugS
      • Shelly Plus Plug S
      • Shelly Plus 1 PM

      Currently no translation is available. It will follow in the next days. But it is not hard to fix by your own, I hope.

      I’m not really a module developer but ChatGPT finally fixed it :-)

      Please try and give me a feedback if you discover some problems. Maybe I can help, but I’m no sure at all :laugh:

      posted in Utilities
      C
      chrisfr1976
    • RE: EVCC Dashboard MM module

      @rabbit83ka Hi, this looks interesting. I‘ve used Grafana in the past but I‘m definately no expert. Can you share the part of of your config.js ? Then I can try to get this running.

      Chris.

      posted in Requests
      C
      chrisfr1976
    • RE: Shelly-PM not working?

      Okay, maybe someone is successfully running this module and can help. I get this message:

      
      0|mm  | [2024-10-21 14:58:00.242] [ERROR] Whoops! There was an uncaught exception... 
      0|mm  | [2024-10-21 14:58:00.242] [ERROR] Error: undefined is not a valid uri or options object.
      0|mm  |     at request (/home/chris/MagicMirror/modules/node_modules/request/index.js:44:11)
      0|mm  |     at Class.socketNotificationReceived (/home/chris/MagicMirror/modules/MMM-Shelly-PM/node_helper.js:30:4)
      0|mm  |     at Socket.<anonymous> (/home/chris/MagicMirror/js/node_helper.js:91:10)
      0|mm  |     at Socket.onevent (/home/chris/MagicMirror/node_modules/socket.io/dist/socket.js:462:26)
      0|mm  |     at Socket._onpacket (/home/chris/MagicMirror/node_modules/socket.io/dist/socket.js:430:22)
      0|mm  |     at /home/chris/MagicMirror/node_modules/socket.io/dist/client.js:214:24
      0|mm  |     at process.processTicksAndRejections (node:internal/process/task_queues:77:11) 
      0|mm  | [2024-10-21 14:58:00.243] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 
      0|mm  | [2024-10-21 14:58:00.244] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MagicMirrorOrg/MagicMirror/issues
      
      

      I had a look in the index.js and the node_helper.js but I can‘t see whats not working.

      Cheers,
      Chris.

      posted in Troubleshooting
      C
      chrisfr1976
    • RE: Shelly-PM not working?

      @sdetweil Hi, that fixed the startup problem. Many thanks!
      But there are still some errors. I`ll check and maybe reopen this topic.

      posted in Troubleshooting
      C
      chrisfr1976
    • Shelly-PM not working?

      Hello,

      I get the message below after I had configured the Module MMM-Shelly-PM. Is anyone running this module and can support? I don`t know how to fix this.

      Module Link:
      MMM-Shelly-PM

      
      0|mm  | > magicmirror@2.29.0 start
      0|mm  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|mm  | [2024-10-20 20:51:40.183] [LOG]   Starting MagicMirror: v2.29.0 
      0|mm  | [2024-10-20 20:51:40.225] [LOG]   Loading config ... 
      0|mm  | [2024-10-20 20:51:40.229] [LOG]   config template file not exists, no envsubst 
      0|mm  | [2024-10-20 20:51:40.772] [INFO]  Checking config file /home/chris/MagicMirror/config/config.js ... 
      0|mm  | [2024-10-20 20:51:40.890] [INFO]  Your configuration file doesn't contain syntax errors :) 
      0|mm  | [2024-10-20 20:51:40.892] [INFO]  Checking modules structure configuration ... 
      0|mm  | [2024-10-20 20:51:41.008] [INFO]  Your modules structure configuration doesn't contain errors :) 
      0|mm  | [2024-10-20 20:51:42.894] [ERROR] (node:13565) UnhandledPromiseRejectionWarning: Error: Cannot find module 'request'
      0|mm  | Require stack:
      0|mm  | - /home/chris/MagicMirror/modules/MMM-Shelly-PM/node_helper.js
      0|mm  | - /home/chris/MagicMirror/js/app.js
      0|mm  | - /home/chris/MagicMirror/js/electron.js
      0|mm  |     at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15)
      0|mm  |     at s._resolveFilename (node:electron/js2c/browser_init:2:121498)
      0|mm  |     at Module._resolveFilename (/home/chris/MagicMirror/node_modules/module-alias/index.js:49:29)
      0|mm  |     at Module._load (node:internal/modules/cjs/loader:1058:27)
      0|mm  |     at c._load (node:electron/js2c/node_init:2:17025)
      0|mm  |     at Module.require (node:internal/modules/cjs/loader:1318:19)
      0|mm  |     at require (node:internal/modules/helpers:179:18)
      0|mm  |     at Object.<anonymous> (/home/chris/MagicMirror/modules/MMM-Shelly-PM/node_helper.js:3:17)
      0|mm  |     at Module._compile (node:internal/modules/cjs/loader:1484:14)
      0|mm  |     at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
      0|mm  |     at Module.load (node:internal/modules/cjs/loader:1295:32)
      0|mm  |     at Module._load (node:internal/modules/cjs/loader:1111:12)
      0|mm  |     at c._load (node:electron/js2c/node_init:2:17025)
      0|mm  |     at Module.require (node:internal/modules/cjs/loader:1318:19)
      0|mm  |     at require (node:internal/modules/helpers:179:18)
      0|mm  |     at loadModule (/home/chris/MagicMirror/js/app.js:200:19)
      0|mm  | (Use `electron --trace-warnings ...` to show where the warning was created) 
      0|mm  | [2024-10-20 20:51:42.908] [ERROR] (node:13565) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
      
      
      posted in Troubleshooting
      C
      chrisfr1976
    • EVCC Dashboard MM module

      Hello,

      I’m using EVCC for load PV surplus. Currently I’m using parts of the EVCC dashboard in an I-Frame. This is not as nice as it could be.

      For all who don’t know what it is: EVCC.

      Has anyone tried to create something for the MM project?

      BR Chris.

      posted in Requests
      C
      chrisfr1976
    • RE: Mirror not starting after update

      @sdetweil

      Mirror is running now. I used

      cd ~/MagicMirror
      git checkout package.json
      git checkout package-lock.json
      rm -rf node_modules
      npm run install-mm
      

      I didn‘t change anything there but this fixed my main problem.

      But I still have this error message when I use pm2 start whatever. But it may be cosmetics…

      Thanks for your help one again!

      Chris

      posted in Troubleshooting
      C
      chrisfr1976
    • RE: Mirror not starting after update

      @sdetweil I did the npm run install-mm already. Still the same error.
      I have a copy of my SD Card. I could start from last version again only with the update script. Maybe this helps.

      Chris.

      posted in Troubleshooting
      C
      chrisfr1976
    • RE: Mirror not starting after update

      @sdetweil

      Now I have:

      node -v
      v22.9.0
      

      And when starting with pm2 I get 2 errors. Fist is directly im PM2:

      chris@MagicPi:~ $ pm2 start mm
      (node:3915) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
      (Use `node --trace-deprecation ...` to show where the warning was created)
      [PM2] Applying action restartProcessId on app [mm](ids: [ 0 ])
      [PM2] [mm](0) ✓
      [PM2] Process successfully started
      ┌────┬───────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name              │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
      ├────┼───────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 1  │ Display_Drehen    │ default     │ N/A     │ fork    │ 3913     │ 2s     │ 26   │ online    │ 0%       │ 1.8mb    │ chris    │ disabled │
      │ 0  │ mm                │ default     │ N/A     │ fork    │ 3922     │ 0s     │ 1    │ online    │ 0%       │ 1.8mb    │ chris    │ disabled │
      └────┴───────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      
      

      Second with “pm2 log mm”:

      0|mm  | > magicmirror@2.29.0 start
      0|mm  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|mm  | App threw an error during load
      0|mm  | Error: Cannot find module 'logger'
      0|mm  | Require stack:
      0|mm  | - /home/chris/MagicMirror/js/app.js
      0|mm  | - /home/chris/MagicMirror/js/electron.js
      0|mm  |     at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15)
      0|mm  |     at s._resolveFilename (node:electron/js2c/browser_init:2:121498)
      0|mm  |     at Module._resolveFilename (/home/chris/MagicMirror/node_modules/module-alias/index.js:49:29)
      0|mm  |     at Module._load (node:internal/modules/cjs/loader:1058:27)
      0|mm  |     at c._load (node:electron/js2c/node_init:2:17025)
      0|mm  |     at Module.require (node:internal/modules/cjs/loader:1318:19)
      0|mm  |     at require (node:internal/modules/helpers:179:18)
      0|mm  |     at Object.<anonymous> (/home/chris/MagicMirror/js/app.js:7:13)
      0|mm  |     at Module._compile (node:internal/modules/cjs/loader:1484:14)
      0|mm  |     at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
      0|mm  |     at Module.load (node:internal/modules/cjs/loader:1295:32)
      0|mm  |     at Module._load (node:internal/modules/cjs/loader:1111:12)
      0|mm  |     at c._load (node:electron/js2c/node_init:2:17025)
      0|mm  |     at Module.require (node:internal/modules/cjs/loader:1318:19)
      0|mm  |     at require (node:internal/modules/helpers:179:18)
      0|mm  |     at Object.<anonymous> (/home/chris/MagicMirror/js/electron.js:4:14)
      0|mm  | A JavaScript error occurred in the main process
      0|mm  | Uncaught Exception:
      0|mm  | Error: Cannot find module 'logger'
      0|mm  | Require stack:
      0|mm  | - /home/chris/MagicMirror/js/app.js
      0|mm  | - /home/chris/MagicMirror/js/electron.js
      0|mm  |     at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15)
      0|mm  |     at s._resolveFilename (node:electron/js2c/browser_init:2:121498)
      0|mm  |     at Module._resolveFilename (/home/chris/MagicMirror/node_modules/module-alias/index.js:49:29)
      0|mm  |     at Module._load (node:internal/modules/cjs/loader:1058:27)
      0|mm  |     at c._load (node:electron/js2c/node_init:2:17025)
      0|mm  |     at Module.require (node:internal/modules/cjs/loader:1318:19)
      0|mm  |     at require (node:internal/modules/helpers:179:18)
      0|mm  |     at Object.<anonymous> (/home/chris/MagicMirror/js/app.js:7:13)
      0|mm  |     at Module._compile (node:internal/modules/cjs/loader:1484:14)
      0|mm  |     at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
      0|mm  |     at Module.load (node:internal/modules/cjs/loader:1295:32)
      0|mm  |     at Module._load (node:internal/modules/cjs/loader:1111:12)
      0|mm  |     at c._load (node:electron/js2c/node_init:2:17025)
      0|mm  |     at Module.require (node:internal/modules/cjs/loader:1318:19)
      0|mm  |     at require (node:internal/modules/helpers:179:18)
      0|mm  |     at Object.<anonymous> (/home/chris/MagicMirror/js/electron.js:4:14)
      0|mm  | [4076:1001/220004.817112:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.817605:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.817935:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.818158:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.818461:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.818629:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.818957:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.819176:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.819569:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.819796:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.820180:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.820424:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.820811:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.821043:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: Datei oder Verzeichnis nicht gefunden (2)
      0|mm  | [4076:1001/220004.821511:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: Datei oder Verzeichnis nicht gefunden (2)
      
      

      and so on…

      posted in Troubleshooting
      C
      chrisfr1976
    • RE: Mirror not starting after update

      @sdetweil here is my upgrade.log:

      Upgrade started - Di Okt  1 19:33:02 CEST 2024
      system is Linux MagicPi 6.1.21-v7l+ #1642 SMP Mon Apr 3 17:22:30 BST 2023 armv7l GNU/Linux
      user requested to apply changes
      doing test run = false
      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_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
      Node currently installed. Checking version number.
      Minimum Node version: v20.9.0
      Installed Node version: v21.7.3
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v20.9.0
      Installed Node version: v21.7.3
      No Node.js upgrade necessary.
      Check current NPM installation ...
      NPM currently installed. Checking version number.
      Minimum npm version: V10.1.0
      Installed npm version: V10.5.0
      No npm upgrade necessary.
      
      saving custom.css
      remote name = origin
      upgrading from version 2.28.0 to 2.29.0
      fetching latest revisions
      git fetch rc=0
      current branch = master
      On branch master
      Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
        (use "git pull" to update your local branch)
      
      Untracked files:
        (use "git add <file>..." to include in what will be committed)
      	core
      	js/main.backup.js
      
      nothing added to commit but untracked files present (use "git add" to track)
      no files different from github version
      test merge result rc='' , if empty, no conflicts
      executing merge, apply specified
      merge result rc= 0
       Updating 53fc814f..94c3c699 Fast-forward  .eslintignore                                      
          2 -  .eslintrc.json                                     
         93 -  .github/CONTRIBUTING.md                            
          2 +-  .github/workflows/automated-tests.yaml             
          2 +-  .../workflows/{depsreview.yaml => dep-review.yaml} 
          2 +  ...{electronRebuild.yaml => electron-rebuild.yaml} 
          6 +-  .github/workflows/enforce-pullrequest-rules.yaml   
          4 +-  .gitignore                                         
          3 +  .prettierignore                                    
          2 +-  CHANGELOG.md                                       
         77 +-  Collaboration.md                                   
         50 +-  README.md                                          
          4 +-  cspell.config.json                                 
        227 +  eslint.config.mjs                                  
        121 +  fonts/package-lock.json                            
         18 +-  fonts/package.json                                 
          4 +-  index.html                                         
          1 +  installers/mm.sh                                   
          4 -  js/app.js                                          
         29 +-  js/check_config.js                                 
        104 +-  js/class.js                                        
         21 +-  js/defaults.js                                     
          8 +-  js/electron.js                                     
         50 +-  js/loader.js                                       
         34 +-  js/main.js                                         
         22 +-  js/module.js                                       
         29 +-  js/node_helper.js                                  
         24 +-  js/server.js                                       
         12 +-  js/server_functions.js                             
         46 +-  js/translator.js                                   
          6 +-  js/utils.js                                        
         41 +-  modules/default/calendar/calendar.js               
         38 +-  modules/default/calendar/debug.js                  
          3 +-  modules/default/compliments/compliments.js         
        100 +-  modules/default/defaultmodules.js                  
          3 +-  .../default/updatenotification/update_helper.js    
         19 +-  modules/default/weather/providers/envcanada.js     
        342 +-  modules/default/weather/providers/openmeteo.js     
         10 +-  .../default/weather/providers/openweathermap.js    
         48 +-  modules/default/weather/providers/pirateweather.js 
         10 +-  modules/default/weather/providers/smhi.js          
         11 +-  modules/default/weather/providers/ukmetoffice.js   
         39 +-  .../weather/providers/ukmetofficedatahub.js        
         64 +-  modules/default/weather/providers/weatherbit.js    
         10 +-  modules/default/weather/providers/weatherflow.js   
         10 +-  modules/default/weather/providers/weathergov.js    
         38 +-  modules/default/weather/providers/yr.js            
         17 +-  modules/default/weather/weather.js                 
         13 +-  modules/default/weather/weatherutils.js            
         36 +-  package-lock.json                                  
       4724 ++++++++++----------  package.json                                       
         51 +-  splashscreen/MagicMirror.plymouth                  
          8 -  splashscreen/MagicMirror.script                    
         53 -  splashscreen/splash.png                            
        Bin 37062 -> 0 bytes  splashscreen/splash_halt.png                       
        Bin 22304 -> 0 bytes  tests/configs/customregions.js                     
         23 +  .../modules/calendar/exdate_la_at_midnight_dst.js  
          3 +-  .../modules/calendar/exdate_la_at_midnight_std.js  
          3 +-  .../modules/calendar/exdate_la_before_midnight.js  
          3 +-  .../modules/calendar/exdate_syd_at_midnight_dst.js 
          3 +-  .../modules/calendar/exdate_syd_at_midnight_std.js 
          3 +-  .../modules/calendar/exdate_syd_before_midnight.js 
          3 +-  .../configs/modules/calendar/long-fullday-event.js 
          3 +-  .../modules/calendar/single-fullday-event.js       
          3 +-  .../modules/calendar/sliceMultiDayEvents.js        
         30 +  .../modules/compliments/compliments_cron_entry.js  
         18 +  .../compliments/compliments_e2e_cron_entry.js      
         18 +  tests/e2e/animateCSS_spec.js                       
          2 +-  tests/e2e/custom_module_regions_spec.js            
         30 +  tests/e2e/helpers/global-setup.js                  
         57 +-  tests/e2e/modules/calendar_spec.js                 
         11 -  tests/e2e/modules/compliments_spec.js              
         11 +  tests/e2e/modules/newsfeed_spec.js                 
         31 +-  tests/e2e/modules/weather_hourly_spec.js           
          4 +-  tests/e2e/modules_display_spec.js                  
          2 +-  tests/e2e/serveronly_spec.js                       
          2 +-  tests/electron/modules/calendar_spec.js            
        123 +-  tests/electron/modules/compliments_spec.js         
         36 +  tests/mocks/sliceMultiDayEvents.ics                
         58 +  tests/unit/functions/server_functions_spec.js      
          6 +-  .../modules/default/weather/weather_utils_spec.js  
          2 +-  vendor/package-lock.json                           
         36 +-  vendor/package.json                                
          3 +-  vendor/vendor.js                                   
          3 +-  84 files changed, 4147 insertions(+), 3078 deletions(-)  delete mode 100644 .eslintignore  delete mode 100644 .eslintrc.json  rename .github/workflows/{depsreview.yaml => dep-review.yaml} (90%)  rename .github/workflows/{electronRebuild.yaml => electron-rebuild.yaml} (77%)  
      create mode 100644 cspell.config.json  
      create mode 100644 eslint.config.mjs  delete mode 100755 installers/mm.sh  delete mode 100644 splashscreen/MagicMirror.plymouth  delete mode 100644 splashscreen/MagicMirror.script  delete mode 100644 splashscreen/splash.png  delete mode 100644 splashscreen/splash_halt.png  
      create mode 100644 tests/configs/customregions.js  
      create mode 100644 tests/configs/modules/calendar/sliceMultiDayEvents.js  
      create mode 100644 tests/configs/modules/compliments/compliments_cron_entry.js  
      create mode 100644 tests/configs/modules/compliments/compliments_e2e_cron_entry.js  
      create mode 100644 tests/e2e/custom_module_regions_spec.js  
      create mode 100644 tests/mocks/sliceMultiDayEvents.ics
      processor architecture is armv7l
      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.29.0
      npm ERR! notsup Not compatible with your version of node/npm: magicmirror@2.29.0
      npm ERR! notsup Required: {"node":">=20.9.0 <21 || 22"}
      npm ERR! notsup Actual:   {"npm":"10.5.0","node":"v21.7.3"}
      
      npm ERR! A complete log of this run can be found in: /home/chris/.npm/_logs/2024-10-01T17_33_19_444Z-debug-0.log
      npm install completed - Di Okt  1 19:33:27 CEST 2024 on base
      
      Checking for modules with removed libraries
      downloading dumpactivemodules script
      
      
      updating dependencies for active modules with package.json files
      
      	processing for module MMM-Carousel please wait
      
      	----------------------------------
      
      up to date, audited 1 package in 2s
      
      found 0 vulnerabilities
      
      	processing complete for module MMM-Carousel
      
      	processing for module MMM-weconnectid please wait
      
      	----------------------------------
      
      up to date, audited 1 package in 2s
      
      found 0 vulnerabilities
      
      	processing complete for module MMM-weconnectid
      
      	processing for module MMM-BackgroundSlideshow please wait
      
      	----------------------------------
      
      added 12 packages, and audited 13 packages in 12s
      
      3 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
      	processing complete for module MMM-BackgroundSlideshow
      
      	processing for module mmm-systemtemperature please wait
      
      	----------------------------------
      
      added 1 package, and audited 2 packages in 6s
      
      found 0 vulnerabilities
      
      	processing complete for module mmm-systemtemperature
      
      	processing for module MMM-pihole-stats please wait
      
      	----------------------------------
      
      up to date, audited 1 package in 2s
      
      found 0 vulnerabilities
      
      	processing complete for module MMM-pihole-stats
      
      	processing for module MMM-NINA please wait
      
      	----------------------------------
      
      up to date, audited 1 package in 2s
      
      found 0 vulnerabilities
      
      	processing complete for module MMM-NINA
      
      	processing for module MMM-Traffic please wait
      
      	----------------------------------
      
      added 5 packages, and audited 6 packages in 6s
      
      found 0 vulnerabilities
      
      	processing complete for module MMM-Traffic
      
      	processing for module MMM-NowPlayingOnSpotify please wait
      
      	----------------------------------
      npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
      npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
      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.
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      
      added 131 packages, and audited 694 packages in 1m
      
      12 packages are looking for funding
        run `npm fund` for details
      
      63 vulnerabilities (2 low, 22 moderate, 31 high, 8 critical)
      
      To address issues that do not require attention, run:
        npm audit fix
      
      To address all issues (including breaking changes), run:
        npm audit fix --force
      
      Run `npm audit` for details.
      
      	processing complete for module MMM-NowPlayingOnSpotify
      
      	processing for module MMM-DWD-Pollen please wait
      
      	----------------------------------
      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
      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.
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      
      added 47 packages, and audited 48 packages in 3s
      
      2 packages are looking for funding
        run `npm fund` for details
      
      2 moderate severity vulnerabilities
      
      Some issues need review, and may require choosing
      a different dependency.
      
      Run `npm audit` for details.
      
      	processing complete for module MMM-DWD-Pollen
      
      	processing for module MMM-SmartWebDisplay please wait
      
      	----------------------------------
      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
      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.
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      
      added 108 packages, and audited 109 packages in 5s
      
      14 packages are looking for funding
        run `npm fund` for details
      
      2 moderate severity vulnerabilities
      
      Some issues need review, and may require choosing
      a different dependency.
      
      Run `npm audit` for details.
      
      	processing complete for module MMM-SmartWebDisplay
      
      	processing for module MMM-CalendarExt3 please wait
      
      	----------------------------------
      
      > mmm-calendarext3@1.8.0 postinstall
      > git submodule update --init --recursive
      
      
      up to date, audited 1 package in 870ms
      
      found 0 vulnerabilities
      
      	processing complete for module MMM-CalendarExt3
      
      	processing for module MMM-MovieListings please wait
      
      	----------------------------------
      npm WARN deprecated har-validator@5.1.5: this library is no longer supported
      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.
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
      
      added 47 packages, and audited 48 packages in 3s
      
      2 packages are looking for funding
        run `npm fund` for details
      
      2 moderate severity vulnerabilities
      
      Some issues need review, and may require choosing
      a different dependency.
      
      Run `npm audit` for details.
      
      	processing complete for module MMM-MovieListings
      
      	processing for module MMM-GoogleMapsTraffic please wait
      
      	----------------------------------
      
      added 5 packages, and audited 6 packages in 2s
      
      found 0 vulnerabilities
      
      	processing complete for module MMM-GoogleMapsTraffic
      
      	processing for module MMM-EmbedURL please wait
      
      	----------------------------------
      npm WARN deprecated @iconify/iconify@3.1.1: no longer maintained, switch to modern iconify-icon web component
      
      added 2 packages, and audited 3 packages in 3s
      
      1 package is looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
      	processing complete for module MMM-EmbedURL
      
      	processing for module MMM-ImagesPhotos please wait
      
      	----------------------------------
      
      added 70 packages, and audited 71 packages in 4s
      
      13 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      
      	processing complete for module MMM-ImagesPhotos
      restoring custom.css
      removing git alias
      Upgrade ended - Di Okt  1 19:36:05 CEST 2024
      
      
      posted in Troubleshooting
      C
      chrisfr1976
    • Mirror not starting after update

      Hello,

      after the latest update my Mirror does not start. I’ve used the update script from sdetweil
      /MagicMirror_scripts
      .
      I’ve used this:

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

      Now I get this error message when it starts:

      0|mm  | > magicmirror@2.29.0 start
      0|mm  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|mm  | sh: 1: ./node_modules/.bin/electron: not found
      

      When using npm install manually I get this:

      npm ERR! code EBADENGINE
      npm ERR! engine Unsupported engine
      npm ERR! engine Not compatible with your version of node/npm: magicmirror@2.29.0
      npm ERR! notsup Not compatible with your version of node/npm: magicmirror@2.29.0
      npm ERR! notsup Required: {"node":">=20.9.0 <21 || 22"}
      npm ERR! notsup Actual:   {"npm":"10.5.0","node":"v21.7.3"}
      
      npm ERR! A complete log of this run can be found in: /home/chris/.npm/_logs/2024-10-01T18_39_19_616Z-debug-0.log
      

      I don’t know. Everythis was fine before the update.

      Chris.

      posted in Troubleshooting
      C
      chrisfr1976
    • RE: MMM-euro2024

      @0m4r There is a problem with the token. I think, I’m stupid, but:

      You write for the config token: [YOUR_TOKEN]

      So I’ve tried token:[1234567890], With this I get an error in the config.js and the mirror does not start up.
      Then I’ve tried token:1234567890,. Same issue.
      Then I’ve tried token:"1234567890", Then the config.js is okay and electron starts. But in this case I get an error message:
      [ERROR] MMM-euro2024 fetchTeams 2018 {"message":"Your API token is invalid.","errorCode":400}

      …of course I received a real API-key from Daniel. Copy+paste, so the key real in my config is okay.

      How should I enter the API-Key? :thinking_face:

      posted in Sport
      C
      chrisfr1976
    • RE: MM failed after updating

      @sdetweil I was able to fix it. git reset --hard followed by npm run install-mm fixed the issue. I don’t know why but now everything is fine again. I’ll do a SD-card back-up now :-)

      posted in Troubleshooting
      C
      chrisfr1976
    • RE: MM failed after updating

      @sdetweil

      In the beginning I’ve used the described update method here:

      https://docs.magicmirror.builders/getting-started/upgrade-guide.html
      

      So only git pull && npm run install-mm was used. But I’ve used the back-up script you’ve provided. Then I found also your update script. I’ve used it then, too. But same error. I’ll send the update.log via email :-)

      Here the lines around line 87. I’ve marked it to show the position only:

      
        // Loads a package.json at given path and JSON parses
        static async load (path, opts = {}) {
          const p = new PackageJson()
          // Avoid try/catch if we aren't going to create
          if (!opts.create) {
            return p.load(path)
          }
      *87*
          try {
            return await p.load(path)
          } catch (err) {
            if (!err.message.startsWith('Could not read package.json')) {
              throw err
            }
            return await p.create(path)
          }
        }
      
      
      

      Chris.

      posted in Troubleshooting
      C
      chrisfr1976
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 6 / 7