MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. codac
    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 15
    • Posts 61
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

      @karsten13 WebUI

      posted in Troubleshooting
      C
      codac
    • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

      @karsten13
      This is a server only setup. Docker runs on “Container Manager” of Synology. The Synology is a DS420+ running on an INTEL Celeron J4025. The OS is DSM of course.

      posted in Troubleshooting
      C
      codac
    • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

      @sdetweil
      This error only comes up when trying to restart MM inside the docker.
      When restarting the docker, this error wont show up.

      posted in Troubleshooting
      C
      codac
    • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

      @karsten13

      docker run
      
      posted in Troubleshooting
      C
      codac
    • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

      @sdetweil
      sorry for the hussle, but this seems to never end :anguished_face:

      after running

      npm install electron@27.2.0
      

      I tried to restart MM:

      root@04492d039b9f:/opt/magic_mirror# DISPLAY=:0 npm restart                      
                                                                                       
      > magicmirror@2.26.0 restart                                                     
      > npm stop --if-present && npm start                                             
                                                                                       
                                                                                       
      > magicmirror@2.26.0 start                                                       
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js           
                                                                                       
      /opt/magic_mirror/node_modules/electron/dist/electron: error while loading shared
       libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or 
      directory                                                           
      
      posted in Troubleshooting
      C
      codac
    • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

      @sdetweil

      root@04492d039b9f:/opt/magic_mirror/modules# cd MMM-SoccerLiveScore              
      root@04492d039b9f:/opt/magic_mirror/modules/MMM-SoccerLiveScore# npm install node
      -fetch@2                                                                         
                                                                                       
      up to date, audited 1 package in 1s                                              
                                                                                       
      found 0 vulnerabilities                                                         
      

      How would I restart MM of the container?
      pm2 is not set up.

      DISPLAY=:0 npm restart
      

      …results in

      > magicmirror@2.26.0 restart                                                     
      > npm stop --if-present && npm start                                             
                                                                                       
                                                                                       
      > magicmirror@2.26.0 start                                                       
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js           
                                                                                       
      sh: 1: ./node_modules/.bin/electron: not found   
      
      posted in Troubleshooting
      C
      codac
    • RE: Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

      @sdetweil
      Thank you for the quick reply.
      Found that solution already in the forum.
      Result is though:

      up to date, audited 1 package in 2s                                              
                                                                                       
      found 0 vulnerabilities
      

      After restarting the docker container, the error remains.

      posted in Troubleshooting
      C
      codac
    • Cannot find module 'node-fetch' error with MMM-SoccerLiveScore

      Running @karsten13 Docker karsten13/magicmirror with the module MMM-SoccerLiveScore from @0m4r results in an error “Cannot find module ‘node-fetch’”.

      2024/01/02 19:18:29	stderr	[02.01.2024 19:18.29.537] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      2024/01/02 19:18:29	stderr	[02.01.2024 19:18.29.537] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      2024/01/02 19:18:29	stderr	}
      2024/01/02 19:18:29	stderr	  ]
      2024/01/02 19:18:29	stderr	    '/opt/magic_mirror/serveronly/index.js'
      2024/01/02 19:18:29	stderr	    '/opt/magic_mirror/js/app.js',
      2024/01/02 19:18:29	stderr	    '/opt/magic_mirror/modules/MMM-SoccerLiveScore/node_helper.js',
      2024/01/02 19:18:29	stderr	  requireStack: [
      2024/01/02 19:18:29	stderr	  code: 'MODULE_NOT_FOUND',
      2024/01/02 19:18:29	stderr	    at async App.start (/opt/magic_mirror/js/app.js:259:3) {
      2024/01/02 19:18:29	stderr	    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      2024/01/02 19:18:29	stderr	    at loadModules (/opt/magic_mirror/js/app.js:211:10)
      2024/01/02 19:18:29	stderr	    at loadModule (/opt/magic_mirror/js/app.js:181:19)
      2024/01/02 19:18:29	stderr	    at require (node:internal/modules/helpers:176:18)
      2024/01/02 19:18:29	stderr	    at Module.require (node:internal/modules/cjs/loader:1235:19)
      2024/01/02 19:18:29	stderr	    at Module._load (node:internal/modules/cjs/loader:1023:12)
      2024/01/02 19:18:29	stderr	    at Module.load (node:internal/modules/cjs/loader:1207:32)
      2024/01/02 19:18:29	stderr	    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
      2024/01/02 19:18:29	stderr	    at Module._compile (node:internal/modules/cjs/loader:1376:14)
      2024/01/02 19:18:29	stderr	    at Object.<anonymous> (/opt/magic_mirror/modules/MMM-SoccerLiveScore/node_helper.js:10:15)
      2024/01/02 19:18:29	stderr	    at require (node:internal/modules/helpers:176:18)
      2024/01/02 19:18:29	stderr	    at Module.require (node:internal/modules/cjs/loader:1235:19)
      2024/01/02 19:18:29	stderr	    at Module._load (node:internal/modules/cjs/loader:985:27)
      2024/01/02 19:18:29	stderr	    at Module._resolveFilename (/opt/magic_mirror/node_modules/module-alias/index.js:49:29)
      2024/01/02 19:18:29	stderr	    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
      2024/01/02 19:18:29	stderr	- /opt/magic_mirror/serveronly/index.js
      2024/01/02 19:18:29	stderr	- /opt/magic_mirror/js/app.js
      2024/01/02 19:18:29	stderr	- /opt/magic_mirror/modules/MMM-SoccerLiveScore/node_helper.js
      2024/01/02 19:18:29	stderr	Require stack:
      2024/01/02 19:18:29	stderr	[02.01.2024 19:18.29.537] [ERROR] Error: Cannot find module 'node-fetch'
      2024/01/02 19:18:29	stderr	[02.01.2024 19:18.29.533] [ERROR] Whoops! There was an uncaught exception... 
      

      Any ideas about how to fix this?

      posted in Troubleshooting
      C
      codac
    • RE: Title of two modules in one line

      @wishmaster270 I prefer the third version. I’ve tried a couple of combinations but none of them led to the requested result.
      What am I missing?

      From my understanding I would suggest this CSS code (which doesnt work this way):

      .MMM-DWD-WarnWeather .wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 320px;
        gap: 5px;
      }
      
      .MMM-DWD-WarnWeather .warning {
        justify-content:flex-end; 
      }
      
      .MMM-DWD-WarnWeather .status {
        margin-top: 0px;
      }
      
      .MMM-DWD-WarnWeather .description {
        padding-left: 0px;
        margin-left: 0px;
      }
      
      .MMM-DWD-WarnWeather .small-icon{
        float: unset;
        zoom: unset;
        -moz-transform: unset;
        -moz-transform-origin: unset;
        width: 46px;
        height: 46px;
        position: relative;
      }
      
      posted in Troubleshooting
      C
      codac
    • RE: Title of two modules in one line

      @wishmaster270 I did change it the way you suggested, but it wont change anything unfortunately.

      posted in Troubleshooting
      C
      codac
    • 1 / 1