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

    Posts

    Recent Best Controversial
    • RE: Compliments module has stopped working

      @sdetweil said in Compliments module has stopped working:

      git checkout modules/default/compliments/compliments.js

      And that has fixed it… very strange. Thanks @sdetweil

      posted in Troubleshooting
      G
      geekhouri
    • RE: Compliments module has stopped working

      @sdetweil followed instructions however do not see anything in the output as below:

      > magicmirror@2.26.0 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [24.01.2024 12:20.55.171] [LOG]   Starting MagicMirror: v2.26.0
      [24.01.2024 12:20.55.183] [LOG]   Loading config ...
      [24.01.2024 12:20.55.193] [DEBUG] config template file not exists, no envsubst
      [24.01.2024 12:20.55.205] [LOG]   Loading module helpers ...
      [24.01.2024 12:20.55.209] [LOG]   No helper found for module: alert.
      [24.01.2024 12:20.55.213] [LOG]   No helper found for module: clock.
      [24.01.2024 12:20.55.689] [LOG]   Initializing new module helper ...
      [24.01.2024 12:20.55.690] [LOG]   Module helper loaded: calendar
      [24.01.2024 12:20.55.694] [LOG]   No helper found for module: compliments.
      [24.01.2024 12:20.56.724] [LOG]   Initializing new module helper ...
      [24.01.2024 12:20.56.726] [LOG]   Module helper loaded: MMM-DailyBibleVerse
      [24.01.2024 12:20.56.857] [LOG]   Initializing new module helper ...
      [24.01.2024 12:20.56.858] [LOG]   Module helper loaded: MMM-OpenWeatherMapForeca                                                                                                                                                                                                                                             st
      [24.01.2024 12:20.56.862] [LOG]   No helper found for module: MMM-GoogleTrafficT                                                                                                                                                                                                                                             imes.
      [24.01.2024 12:20.57.729] [LOG]   Initializing new module helper ...
      [24.01.2024 12:20.57.730] [LOG]   Module helper loaded: MMM-WordOfTheDay
      [24.01.2024 12:20.57.736] [LOG]   Initializing new module helper ...
      [24.01.2024 12:20.57.737] [LOG]   Module helper loaded: MMM-GoogleSheets
      [24.01.2024 12:20.58.082] [LOG]   Initializing new module helper ...
      [24.01.2024 12:20.58.083] [LOG]   Module helper loaded: newsfeed
      [24.01.2024 12:20.58.084] [LOG]   All module helpers loaded.
      [24.01.2024 12:20.58.102] [LOG]   Starting server on port 8080 ...
      [24.01.2024 12:20.58.926] [LOG]   Server started ...
      [24.01.2024 12:20.58.929] [LOG]   Connecting socket for: calendar
      [24.01.2024 12:20.58.930] [LOG]   Starting node helper for: calendar
      [24.01.2024 12:20.58.932] [LOG]   Connecting socket for: MMM-DailyBibleVerse
      [24.01.2024 12:20.58.933] [LOG]   Started node_helper.js for MMM-DailyBibleVerse                                                                                                                                                                                                                                             .
      [24.01.2024 12:20.58.934] [LOG]   Connecting socket for: MMM-OpenWeatherMapForec                                                                                                                                                                                                                                             ast
      [24.01.2024 12:20.58.936] [LOG]   ====================== Starting node_helper fo                                                                                                                                                                                                                                             r module [MMM-OpenWeatherMapForecast]
      [24.01.2024 12:20.58.937] [LOG]   Connecting socket for: MMM-WordOfTheDay
      [24.01.2024 12:20.58.938] [LOG]   Starting module helper: MMM-WordOfTheDay
      [24.01.2024 12:20.58.939] [LOG]   Connecting socket for: MMM-GoogleSheets
      [24.01.2024 12:20.58.940] [LOG]   ====================== Starting node_helper fo                                                                                                                                                                                                                                             r module [MMM-GoogleSheets]
      [24.01.2024 12:20.58.941] [LOG]   Connecting socket for: newsfeed
      [24.01.2024 12:20.58.942] [LOG]   Starting node helper for: newsfeed
      [24.01.2024 12:20.58.944] [LOG]   Sockets connected & modules started ...
      [24.01.2024 12:20.59.084] [LOG]   Launching application.
      [24.01.2024 12:21.06.600] [LOG]   Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/%40gmail.com/public/basic.ics - Interval: 604800000
      [24.01.2024 12:21.07.000] [LOG]   MMM-DailyBibleVerse node helper received a socket notification: START - Payload: NIV
      [24.01.2024 12:21.07.031] [LOG]   Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
      [24.01.2024 12:21.07.046] [LOG]   Create new newsfetcher for url: https://www.9news.com.au/rss - Interval: 300000
      [24.01.2024 12:21.07.054] [LOG]   Create new newsfetcher for url: https://www.smh.com.au/rss/feed.xml - Interval: 300000
      [24.01.2024 12:21.08.318] [INFO]  Newsfeed-Fetcher: Broadcasting 17 items.
      [24.01.2024 12:21.08.380] [LOG]   {"votd":{"text":"“If any of you lacks wisdom, you should ask God, who gives generously to all without finding fault, and it will be given to you.”","content":"If any of you lacks wisdom, you should ask God, who gives generously to all without finding fault, and it will be given to you.","display_ref":"James 1:5","reference":"James 1:5","permalink":"https:\/\/www.biblegateway.com\/passage\/?search=James%201:5&version=NIV","copyright":" ","copyrightlink":"https:\/\/www.biblegateway.com\/versions\/index.php?action=getVersionInfo&vid=31&lang=2","audiolink":"https:\/\/www.biblegateway.com\/audio\/mclean\/niv\/Jas.1.5","day":"23","month":"01","year":"2024","version":"New International Version","version_id":"NIV","merchandising":""}}
      [24.01.2024 12:21.09.117] [INFO]  Newsfeed-Fetcher: Broadcasting 22 items.
      [24.01.2024 12:21.09.136] [INFO]  Newsfeed-Fetcher: Broadcasting 20 items.
      [24.01.2024 12:21.11.958] [INFO]  Calendar-Fetcher: Broadcasting 51 events from https://calendar.google.com/calendar/ical/%40gmail.com/public/basic.ics.
      Warning: vkCreateInstance: Found no drivers!
      Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
          at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
          at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
          at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
          at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
          at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
      

      Can i reinstall the compliments module?

      posted in Troubleshooting
      G
      geekhouri
    • RE: Compliments module has stopped working

      @sdetweil thanks again. Saved the file, flushed the logs rebooted and new log is below no new errrors and i think you previously stated the errors below cant be hidden. . Still no Compliments working (i’m at a loss now)

      0|mm       | Warning: vkCreateInstance: Found no drivers!
      0|mm       | Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
      0|mm       |     at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/v                                                                                                                                                                                                                                             ulkan/VulkanError.cpp:88)
      0|mm       |     at CreateVkInstance (../../third_party/dawn/src/dawn/native/vul                                                                                                                                                                                                                                             kan/BackendVk.cpp:458)
      0|mm       |     at Initialize (../../third_party/dawn/src/dawn/native/vulkan/Ba                                                                                                                                                                                                                                             ckendVk.cpp:344)
      0|mm       |     at Create (../../third_party/dawn/src/dawn/native/vulkan/Backen                                                                                                                                                                                                                                             dVk.cpp:266)
      0|mm       |     at operator() (../../third_party/dawn/src/dawn/native/vulkan/Ba                                                                                                                                                                                                                                             ckendVk.cpp:521)
      0|mm       |
      
      
      posted in Troubleshooting
      G
      geekhouri
    • RE: Compliments module has stopped working

      @sdetweil still nothing, here is my code in full and the pm2 logs:

                      {
                              module: "compliments",
                              position: "top_bar",
                              config: {
                               compliments: {
                                       anytime: ["Be Smart, Be Kind, Be Like Jesus!"],
                                      morning: ["Good morning!", "Enjoy your day!", "How was school"],
                                      afternoon: ["How was School?", "Finish Your homework?"],
                                      evening: ["Sweet Dreams", "You look nice!", "Ready for School"],
                                      "....-01-12": ["Happy new year!"],
                                      "....02-12": ["Happy Birthday E!"],
                                      "....03-12": ["Happy Birthday Z!"],
                                      "....05-12": ["Happy Birthday G!"],
                                              } //end of compliments
                                      } //end of config
                      }, //end of module
      

      Pm2 logs as follows:

      0|mm       |     at Object..js (node:internal/modules/cjs/loader:1326:10)
      0|mm       |     at Module.load (node:internal/modules/cjs/loader:1126:32)
      0|mm       |     at node:internal/modules/cjs/loader:967:12
      0|mm       | Warning: vkCreateInstance: Found no drivers!
      0|mm       | Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
      0|mm       |     at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/v                                                                                                                                                                                                                                             ulkan/VulkanError.cpp:88)
      0|mm       |     at CreateVkInstance (../../third_party/dawn/src/dawn/native/vul                                                                                                                                                                                                                                             kan/BackendVk.cpp:458)
      0|mm       |     at Initialize (../../third_party/dawn/src/dawn/native/vulkan/Ba                                                                                                                                                                                                                                             ckendVk.cpp:344)
      0|mm       |     at Create (../../third_party/dawn/src/dawn/native/vulkan/Backen                                                                                                                                                                                                                                             dVk.cpp:266)
      0|mm       |     at operator() (../../third_party/dawn/src/dawn/native/vulkan/Ba                                                                                                                                                                                                                                             ckendVk.cpp:521)
      0|mm       |
      0|mm       | /home/gkhouri/MagicMirror/node_modules/electron/dist/electron exite                                                                                                                                                                                                                                             d with signal SIGINT
      0|mm       | [24.01.2024 01:29.00.569] [ERROR] WARNING! Could not validate confi                                                                                                                                                                                                                                             g file. Starting with default configuration. Please correct syntax errors at or                                                                                                                                                                                                                                              above this line: /home/gkhouri/MagicMirror/config/config.js:68
      0|mm       |                    config: {
      0|mm       |                    ^^^^^^
      0|mm       |
      0|mm       | SyntaxError: Unexpected identifier 'config'
      0|mm       |     at internalCompileFunction (node:internal/vm:73:18)
      0|mm       |     at wrapSafe (node:internal/modules/cjs/loader:1185:20)
      0|mm       |     at Module._compile (node:internal/modules/cjs/loader:1227:27)
      0|mm       |     at Object..js (node:internal/modules/cjs/loader:1326:10)
      0|mm       |     at Module.load (node:internal/modules/cjs/loader:1126:32)
      0|mm       |     at node:internal/modules/cjs/loader:967:12
      0|mm       |     at Function._load (node:electron/js2c/asar_bundle:2:13327)
      0|mm       |     at Module.require (node:internal/modules/cjs/loader:1150:19)
      0|mm       |     at require (node:internal/modules/cjs/helpers:121:18)
      0|mm       |     at loadConfig (/home/gkhouri/MagicMirror/js/app.js:118:14)
      0|mm       |     at App.start (/home/gkhouri/MagicMirror/js/app.js:248:18)
      0|mm       |     at Object.<anonymous> (/home/gkhouri/MagicMirror/js/electron.js                                                                                                                                                                                                                                             :192:7)
      0|mm       |     at Module._compile (node:internal/modules/cjs/loader:1271:14)
      0|mm       |     at Object..js (node:internal/modules/cjs/loader:1326:10)
      0|mm       |     at Module.load (node:internal/modules/cjs/loader:1126:32)
      0|mm       |     at node:internal/modules/cjs/loader:967:12
      0|mm       | Warning: vkCreateInstance: Found no drivers!
      0|mm       | Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
      0|mm       |     at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/v                                                                                                                                                                                                                                             ulkan/VulkanError.cpp:88)
      0|mm       |     at CreateVkInstance (../../third_party/dawn/src/dawn/native/vul                                                                                                                                                                                                                                             kan/BackendVk.cpp:458)
      0|mm       |     at Initialize (../../third_party/dawn/src/dawn/native/vulkan/Ba                                                                                                                                                                                                                                             ckendVk.cpp:344)
      0|mm       |     at Create (../../third_party/dawn/src/dawn/native/vulkan/Backen                                                                                                                                                                                                                                             dVk.cpp:266)
      0|mm       |     at operator() (../../third_party/dawn/src/dawn/native/vulkan/Ba                                                                                                                                                                                                                                             ckendVk.cpp:521)
      0|mm       |
      0|mm       | /home/gkhouri/MagicMirror/node_modules/electron/dist/electron exite                                                                                                                                                                                                                                             d with signal SIGINT
      0|mm       | Warning: vkCreateInstance: Found no drivers!
      0|mm       | Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
      0|mm       |     at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/v                                                                                                                                                                                                                                             ulkan/VulkanError.cpp:88)
      0|mm       |     at CreateVkInstance (../../third_party/dawn/src/dawn/native/vul                                                                                                                                                                                                                                             kan/BackendVk.cpp:458)
      0|mm       |     at Initialize (../../third_party/dawn/src/dawn/native/vulkan/Ba                                                                                                                                                                                                                                             ckendVk.cpp:344)
      0|mm       |     at Create (../../third_party/dawn/src/dawn/native/vulkan/Backen                                                                                                                                                                                                                                             dVk.cpp:266)
      0|mm       |     at operator() (../../third_party/dawn/src/dawn/native/vulkan/Ba                                                                                                                                                                                                                                             ckendVk.cpp:521)
      0|mm       |
      
      
      posted in Troubleshooting
      G
      geekhouri
    • RE: Compliments module has stopped working

      @sdetweil made those changes and MM is working again however i the compliments are still not visible? Any thoughts?

      posted in Troubleshooting
      G
      geekhouri
    • RE: Compliments module has stopped working

      @sdetweil thanks for your feedback, i have updated my config.js file but now i run into the config file error and MM does not load. Code is below as is the error after running config: check

                      {
                              module: "compliments",
                              position: "top_bar"
                              config: {
                               compliments: {
                                       anytime: ["Be Smart, Be Kind, Be Like Jesus!"],
                                      morning: ["Good morning!", "Enjoy your day!", "How was school"],
                                      afternoon: ["How was School?", "Finish Your homework?"],
                                      evening: ["Sweet Dreams", "You look nice!", "Ready for School"],
                                      "....-01-12": ["Happy new year!"]
                                      "....02-12": ["Happy Birthday E!"]
                                      "....03-12": ["Happy Birthday Z!"]
                                      "....05-12": ["Happy Birthday G!"]
                                      }
                      },
      

      npm run config:check

      [24.01.2024 01:07.25.065] [INFO]  Checking file...  /home/gkhouri/MagicMirror/config/config.js
      [24.01.2024 01:07.25.165] [ERROR] Your configuration file contains syntax errors :(
      [24.01.2024 01:07.25.167] [ERROR] Line 68 column 4: Parsing error: Unexpected token config
      

      Line 68 is config: { …

      Thanks again

      posted in Troubleshooting
      G
      geekhouri
    • RE: Compliments module has stopped working

      @sdetweil thanks for your reply. Just to be clear you mean i should not edit the compliments.js file and any configs should be in the config.js file (Sorry probably a newbie question but im still learning)

      The mm.sh code is listed below:

      cd ./MagicMirror
      DISPLAY=:0 npm start
      
      

      I hope this is what you are after.

      posted in Troubleshooting
      G
      geekhouri
    • Compliments module has stopped working

      I recently noticed the compliments are no longer showing up on my MM. I have tried troubleshooting, checking for updates etc… but cannot seem to contain the issue. My config and compliments.js is listed below:

                      {
                              module: "compliments",
                              position: "top_bar"
                      },
      
      
      /* MagicMirror²
       * Module: Compliments
       *
       * By Michael Teeuw https://michaelteeuw.nl
       * MIT Licensed.
       */
      Module.register("compliments", {
              // Module config defaults.
              defaults: {
                      compliments: {
                              anytime: ["Be Smart, Be Kind, Be Like Jesus!"],
                              morning: ["Good morning!", "Enjoy your day!", "How was your sleep?"],
                              afternoon: ["How was School?", "Finish Your homework?", "Looking good today!"],
                              evening: ["Sweet Dreams", "You look nice!", "Ready for Bed"],
                             
                      },
                      updateInterval: 30000,
                      remoteFile: null,
                      fadeSpeed: 4000,
                      morningStartTime: 3,
                      morningEndTime: 12,
                      afternoonStartTime: 12,
                      afternoonEndTime: 17,
                      random: true
              },
              lastIndexUsed: -1,
              // Set currentweather from module
              currentWeatherType: "",
      
              // Define required scripts.
              getScripts () {
                      return ["moment.js"];
              },
      
              // Define start sequence.
              async start () {
                      Log.info(`Starting module: ${this.name}`);
      
                      this.lastComplimentIndex = -1;
      
                      if (this.config.remoteFile !== null) {
                              const response = await this.loadComplimentFile();
                              this.config.compliments = JSON.parse(response);
                              this.updateDom();
                      }
      
                      // Schedule update timer.
                      setInterval(() => {
                              this.updateDom(this.config.fadeSpeed);
                      }, this.config.updateInterval);
              },
      
              /**
               * Generate a random index for a list of compliments.
               * @param {string[]} compliments Array with compliments.
               * @returns {number} a random index of given array
               */
              randomIndex (compliments) {
                      if (compliments.length === 1) {
                              return 0;
                      }
      
                      const generate = function () {
                              return Math.floor(Math.random() * compliments.length);
                      };
      
                      let complimentIndex = generate();
      
                      while (complimentIndex === this.lastComplimentIndex) {
                              complimentIndex = generate();
                      }
      
                      this.lastComplimentIndex = complimentIndex;
      
                      return complimentIndex;
              },
      
      

      PM2 Logs as follows:

      /home/88888/.pm2/logs/mm-error.log last 15 lines:
      0|mm       | [15270:0123/174828.158857:ERROR:connection.cc(46)] X connection error received.
      0|mm       | [15270:0123/174828.160623:ERROR:connection.cc(46)] X connection error received.
      0|mm       | /home/88888/MagicMirror/mm.sh: line 1: cd: ./MagicMirror: No such file or directory
      0|mm       | Warning: vkCreateInstance: Found no drivers!
      0|mm       | Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
      0|mm       |     at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
      0|mm       |     at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
      0|mm       |     at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
      0|mm       |     at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
      0|mm       |     at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
      
      

      Thanks in advance

      posted in Troubleshooting
      G
      geekhouri
    • RE: MM Starts but no screen after upgrade

      @sdetweil thank-you very much, really appreciate the support on this…

      posted in Troubleshooting
      G
      geekhouri
    • RE: MM Starts but no screen after upgrade

      @sdetweil really appreciate your help, that has worked. I will definitely follow your guides moving forward. Out of curiosity when i ran that command i got the following :

      pm 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 v ersions may use Math.random() in certain circumstances, which is known to be pro blematic. See https://v8.dev/blog/math-random for details.
      npm WARN deprecated request@2.88.2: request has been deprecated, see https://git hub.com/request/request/issues/3142

      added 32 packages in 18s

      196 packages are looking for funding
      run npm fund for details

      Do i need do anything here or can i ignore?

      posted in Troubleshooting
      G
      geekhouri
    • RE: MM Starts but no screen after upgrade

      HI @sdetweil, Please see answers below:

      lets start at the beginning… how did you install, and how did you upgrade? manual or with my scripts? It was manual as per the instructions above

      tell me output of

      **node -v**  = v20.5.1
      
      **npm -v** = 9.8.0
      
      **lsb_release -a**
      No LSB modules are available.
      Distributor ID: Debian
      Description:    Debian GNU/Linux 11 (bullseye)
      Release:        11
      Codename:       bullseye
      
      **uname -a**
      Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
      
      
      **do you use pm2 to autostart?**  Yes i do
      > 
      **> if so do 
      > ```bash
      > pm2 stop all
      > cd ~/MagicMirror
      > npm start 
      > ```
      > ctrl-q to stop MM
      > 
      > post the error messages**
      
      @raspberrypi:~/MagicMirror $ npm start
      
      > magicmirror@2.26.0 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [08.01.2024 15:54.29.488] [LOG]   Starting MagicMirror: v2.26.0
      [08.01.2024 15:54.29.500] [LOG]   Loading config ...
      [08.01.2024 15:54.29.510] [DEBUG] config template file not exists, no envsubst
      [08.01.2024 15:54.29.523] [LOG]   Loading module helpers ...
      [08.01.2024 15:54.29.526] [LOG]   No helper found for module: alert.
      [08.01.2024 15:54.29.604] [LOG]   Initializing new module helper ...
      [08.01.2024 15:54.29.606] [LOG]   Module helper loaded: updatenotification
      [08.01.2024 15:54.29.608] [LOG]   No helper found for module: clock.
      [08.01.2024 15:54.30.088] [LOG]   Initializing new module helper ...
      [08.01.2024 15:54.30.090] [LOG]   Module helper loaded: calendar
      [08.01.2024 15:54.30.093] [LOG]   No helper found for module: compliments.
      [08.01.2024 15:54.31.047] [LOG]   Initializing new module helper ...
      [08.01.2024 15:54.31.048] [LOG]   Module helper loaded: MMM-DailyBibleVerse
      [08.01.2024 15:54.31.175] [LOG]   Initializing new module helper ...
      [08.01.2024 15:54.31.176] [LOG]   Module helper loaded: MMM-OpenWeatherMapForecast
      [08.01.2024 15:54.31.178] [LOG]   No helper found for module: MMM-GoogleTrafficTimes.
      [08.01.2024 15:54.31.189] [ERROR] (node:1960) UnhandledPromiseRejectionWarning: Error: Cannot find module 'request'
      Require stack:
      - /home/gkhouri/MagicMirror/modules/MMM-WordOfTheDay/node_helper.js
      - /home/gkhouri/MagicMirror/js/app.js
      - /home/gkhouri/MagicMirror/js/electron.js
      - /home/gkhouri/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      -
         at node:internal/modules/cjs/loader:1084:15
         at Function.<anonymous> (node:electron/js2c/browser_init:2:116646)
         at Module._resolveFilename (/home/gkhouri/MagicMirror/node_modules/module-alias/index.js:49:29)
         at node:internal/modules/cjs/loader:929:27
         at Function._load (node:electron/js2c/asar_bundle:2:13327)
         at Module.require (node:internal/modules/cjs/loader:1150:19)
         at require (node:internal/modules/cjs/helpers:121:18)
         at Object.<anonymous> (/home/gkhouri/MagicMirror/modules/MMM-WordOfTheDay/node_helper.js:9:15)
         at Module._compile (node:internal/modules/cjs/loader:1271:14)
         at Object..js (node:internal/modules/cjs/loader:1326:10)
         at Module.load (node:internal/modules/cjs/loader:1126:32)
         at node:internal/modules/cjs/loader:967:12
         at Function._load (node:electron/js2c/asar_bundle:2:13327)
         at Module.require (node:internal/modules/cjs/loader:1150:19)
         at require (node:internal/modules/cjs/helpers:121:18)
         at loadModule (/home/gkhouri/MagicMirror/js/app.js:181:19)
      (Use `electron --trace-warnings ...` to show where the warning was created)
      [08.01.2024 15:54.31.191] [ERROR] (node:1960) 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
      G
      geekhouri
    • MM Starts but no screen after upgrade

      Hi all,

      I’m relatively new to MM and typically rely on step-by-step guidance to navigate through tasks. Recently, I successfully created a solid MM setup and was satisfied with it. However, when I decided to upgrade due to the system indicating available updates, things took a turn. Post-upgrade, MM is no longer visible, and I’m struggling to pinpoint the problem. I suspect the issue may be related to the outdated instructions I followed for reference.

      "@PaulB First, make a backup of your install with cp -r ~/MagicMirror ~/MM-Backup. Then run git stash in ~/MagicMirror to temporarily stash your changes so that git can merge all those new commits.

      To merge, run git pull to update your MM install, then use npm install to upgrade or install any new dependencies to the appropriate version.

      Once complete, run git stash apply to reintroduce your changes (while also keeping them in the stash) – you may need to deconflict or otherwise review these changes. You can see your changes with git diff.

      Once you’re happy and MM is running smoothly, you can git stash drop to get rid of the stash. You can run rm -rf ~/MM-Backup once you’re content it’s all working as it should.

      Finally, I recommend you take the opportunity to also run sudo apt-get update && sudo apt-get dist-upgrade npm && sudo dist-upgrade pm2 (I think nodejs should upgrade as a dependency of npm but could be wrong)."

      GIT STATUS output is:

      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
      mm.sh

      nothing added to commit but untracked files present (use “git add” to track)

      Any help to resolve would be appreciated before i give up and start form scratch again…

      Thanks in advance.

      George

      posted in Troubleshooting
      G
      geekhouri
    • 1 / 1