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
    • 1 / 1