Read the statement by Michael Teeuw here.
Compliments module has stopped working
-
@sdetweil made those changes and MM is working again however i the compliments are still not visible? Any thoughts?
-
@geekhouri also missing a close } before the last one
{ 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 moduleyou should see the error where you start mm…
if using pm2, then
pm2 logs --lines=50 -
@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 modulePm2 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 | -
@geekhouri said in Compliments module has stopped working:
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’I can only assume you haven’t saved the updated config… (I do that sometimes…oops)
-
@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 | -
@geekhouri ok, lets stop using pm2…
pm2 stop all
then
cd ~/MagicMirror
npm startwait
if you are doing this on the MM screen
ctrl-q to stop mm (with pm2, it would restart it immediately… thats is job)so, see anything in the output??
I used your config and it worked (on v2.26) without any issues
-
@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?
-
@geekhouri do
cd ~/MagicMirror git checkout modules/default/compliments/compliments.js -
@sdetweil said in Compliments module has stopped working:
git checkout modules/default/compliments/compliments.js
And that has fixed it… very strange. Thanks @sdetweil
-
@geekhouri glad you got it fixed
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login