Wait, it worked now. I was missing the []. It needs an array. Thanks again!
Read the statement by Michael Teeuw here.
Best posts made by nakulbende
-
RE: MBTA - can anyone get this working?
-
MMM-pihole was causing major bugs/ freezes
Hello all,
This is just a PSA - I believe the module MMM-Pihole was causing my mirror to crash badly, mostly causing it to loose connection, freeze every 2-3 hours. Here is the chronological scenario:
- Updated MM
- Tested with many many configurations of modules. I spent almost a month debugging it - and ran all permutations and combinations of why the mirror is freezing. The logs only showed internet disconnect
- @sdetweil looked at the logs, which were not really helpful. He suggested to move the installation form a SD card to USB. I did this, and in addition added active cooling fan to the pi, so we can strike off cooling issues. My pi was freezing/ acting up even when the temps never went above 40
- MMM-Pihole - only with just that module running caused bugs. As soon as I disabled it, running all the modules cased no bugs. Compare 1-2 hour of stability vs. running for last month without errors
- Freezes are obvious, but I even got partial mirror displayed. Weird, so leaving a snapshot here (look at the calendar and time module):
So, if you are using the module, and are having issues - try taking it off, hope it solves your issue.
-
MMM-RemoteCompliments not showing anything except the current compliments
Hello,
I have the MMM-RemoteCompliments setup as following:
My issue is that the module is not showing any of my random/ scheduled compliments that I configured in google drive. I know that the authentication is done and correct, since I can see compliments when I put something in the current document. I also see a image icon (see pic below), even though I do not have any images, and have set the function to FALSE. I can not see the header either.
Here are the config file, random compliment file and a current screenshot. What am I doing wrong?
Config
{ module: "MMM-RemoteCompliments", position: "top_bar", header: "XXXXX", config: { fetchInterval: 15000 } },
Random compliment file
{ anytime: [ "I love you to moon moon and back", "On a scale from 1 to 10, \nyou're an 15!", "You`re like sunshine on a rainy day", "You`re wonderful", "You, me -home!", "You make my world awesome", "I could just hang here all day!", "You look beautiful today", "Mickey killed Jeff Epstein!", "Nolite te bastardes carborundorum", ], morning: [ "Good morning, sunshine!", "Enjoy your day!", "How was your sleep?", "Who needs coffee when you have that smile?", "Go bring me some coffee", "Nolite te bastardes carborundorum", ], afternoon: [ "Hello, beauty!", "You look sexy!", "Looking good today!", "Hard day at work, wasn`t it?", "For every kiss you give me \nI will give you three!", ], evening: [ "Wow, you look hot!", "You look nice!", "Let the evening \nbe-GIN", "Gude!", "Night Owl!", ] }
Only with current doc
Latest posts made by nakulbende
-
MESA issues - mm actually displays
Saw this error in
npm start
. Quick search says that these typically rnder a black screen - I am actually seeing MM, so what does this error mean?MESA-LOADER: failed to retrieve device information ../../buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[27159:1223/223830.134308:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6 MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information ../../buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[27202:1223/223831.357228:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. [27159:1223/223831.363276:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6 [27202:1223/223832.163432:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
-
Calendar module not showing events (fetch error)
Using the default calendar module to display events - the same config worked for a while. I updated MM, and this does not work anymore. Getting the following issue regardless of which link I have in config - I checked and the cal links are working.
I am using a RPi, MM is up to date. Thanks for all the help community!
[23.12.2023 22:22.14.151] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/en.indian%23holiday%40group.v.calendar.google.com/public/basic.ics - Interval: 3600000 [23.12.2023 22:22.14.157] [ERROR] Whoops! There was an uncaught exception... [23.12.2023 22:22.14.168] [ERROR] ReferenceError: fetch is not defined at fetchCalendar (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:58:3) at CalendarFetcher.startFetch (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:103:3) at Class.createFetcher (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:80:11) at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:21:9) at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:104:11) at Socket.emit (node:events:513:28) at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22) at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:703:39 at process.processTicksAndRejections (node:internal/process/task_queues:78:11) [23.12.2023 22:22.14.169] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [23.12.2023 22:22.14.170] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
Here is my config for this module:
// Calendar { module: "calendar", //header: "Calenar", position: "top_right", config: { colored: true, maximumNumberOfDays: 60, maximumEntries: 12, displaySymbol: true, timeFormat: "absolute", broadcastPastEvents: true, showEnd: false, wrapEvents: false, calendars: [ { //symbol: "fas fa-glass", //maximumEntries: 4, url: 'https://calendar.google.com/calendar/ical/en.indian%23holiday%40group.v.calendar.google.com/public/basic.ics', //color: "#c97dff" // #ff8989, #ffc386, #f9ff99 is red, orange and yellow }, { symbol: "fas fa-heart", maximumEntries: 4, color: "#a1ffb6", url: "XXX", }, { symbol: "fas fa-birthday-cake", maximumEntries: 4, color: "#ff8989", url: "XXX", }, ], }, },
-
RE: Mirror fails to start upon update
Here is the output to
npm start
from MagicMirror folder after I removed most of the modules from configuration - just clock and calendar.> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [25.05.2023 09:10.17.646] [LOG] Starting MagicMirror: v2.23.0 [25.05.2023 09:10.17.671] [LOG] Loading config ... [25.05.2023 09:10.17.680] [DEBUG] config template file not exists, no envsubst [25.05.2023 09:10.17.697] [LOG] Loading module helpers ... [25.05.2023 09:10.17.700] [LOG] No helper found for module: clock. [25.05.2023 09:10.17.702] [LOG] No helper found for module: calendar_monthly. [25.05.2023 09:10.18.227] [LOG] Initializing new module helper ... [25.05.2023 09:10.18.229] [LOG] Module helper loaded: calendar [25.05.2023 09:10.18.253] [ERROR] (node:23106) UnhandledPromiseRejectionWarning: Error: Cannot find module 'googleapis' Require stack: - /home/pi/MagicMirror/modules/MMM-Buller/node_helper.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at Module._resolveFilename (node:internal/modules/cjs/loader:963:15) at n._resolveFilename (node:electron/js2c/browser_init:2:109751) at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (node:internal/modules/cjs/loader:811:27) at f._load (node:electron/js2c/asar_bundle:2:13330) at Module.require (node:internal/modules/cjs/loader:1035:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Buller/node_helper.js:14:18) at Module._compile (node:internal/modules/cjs/loader:1141:14) at Module._extensions..js (node:internal/modules/cjs/loader:1196:10) at Module.load (node:internal/modules/cjs/loader:1011:32) at Module._load (node:internal/modules/cjs/loader:846:12) at f._load (node:electron/js2c/asar_bundle:2:13330) at Module.require (node:internal/modules/cjs/loader:1035:19) at require (node:internal/modules/cjs/helpers:102:18) at loadModule (/home/pi/MagicMirror/js/app.js:184:19) (Use `electron --trace-warnings ...` to show where the warning was created) [25.05.2023 09:10.18.255] [ERROR] (node:23106) 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: 2) [25.05.2023 09:10.18.801] [LOG] Launching application. MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information
-
Mirror fails to start upon update
I had a magicmirror on raspberyr pi 3 that I started after a year. Chronologically,
- everything worked perfectly as before
- updated raspi and magicmirror
- MM not starting anymore
I use to be able to troubleshoot these myself, but I have been away from this project for 2 years. Can I get some help to point me in the right direction please?
Here are the common outputs:
pm2 status MagicMirror
(even though nothing is being displayed)
┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 1 │ online │ 0% │ 2.6mb │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
npm run config:check
> node js/check_config.js /home/pi/MagicMirror/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2383 const require$1 = Module.createRequire(require('url').pathToFileURL(__filename).toString()); ^ TypeError: Module.createRequire is not a function at Object.<anonymous> (/home/pi/MagicMirror/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2383:26) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/eslint/lib/cli-engine/cli-engine.js:33:5) at Module._compile (internal/modules/cjs/loader.js:778:30) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! magicmirror@2.23.0 config:check: `node js/check_config.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.23.0 config:check script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2023-05-25T12_44_27_070Z-debug.log
In pm2 error logs
[23.05.2023 16:07.34.099] [ERROR] (node:924) 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: 2) MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to retrieve device information /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT [24.05.2023 09:49.11.903] [WARN] No /home/pi/MagicMirror/js/../modules/currentweather/currentweather.js found for module: currentweather. [24.05.2023 09:49.12.450] [ERROR] (node:13127) UnhandledPromiseRejectionWarning: Error: Cannot find module 'googleapis' Require stack: - /home/pi/MagicMirror/modules/MMM-Buller/node_helper.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at Module._resolveFilename (node:internal/modules/cjs/loader:963:15) at n._resolveFilename (node:electron/js2c/browser_init:2:109751) at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (node:internal/modules/cjs/loader:811:27) at f._load (node:electron/js2c/asar_bundle:2:13330) at Module.require (node:internal/modules/cjs/loader:1035:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Buller/node_helper.js:14:18) at Module._compile (node:internal/modules/cjs/loader:1141:14) at Module._extensions..js (node:internal/modules/cjs/loader:1196:10) at Module.load (node:internal/modules/cjs/loader:1011:32) at Module._load (node:internal/modules/cjs/loader:846:12) at f._load (node:electron/js2c/asar_bundle:2:13330) at Module.require (node:internal/modules/cjs/loader:1035:19) at require (node:internal/modules/cjs/helpers:102:18) at loadModule (/home/pi/MagicMirror/js/app.js:184:19) (Use `electron --trace-warnings ...` to show where the warning was created) [24.05.2023 09:49.12.452] [ERROR] (node:13127) 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
- In case it is useful, I ran
npm run install-mm
again for the following output
> magicmirror@2.23.0 install-mm /home/pi/MagicMirror > npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev [..................] | rollbackFailedOptional: verb npm-session 6b05a62f7 > magicmirror@2.23.0 postinstall /home/pi/MagicMirror > npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully! " > magicmirror@2.23.0 install-vendor /home/pi/MagicMirror > echo "Installing vendor files ... " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier Installing vendor files ... up to date in 7.855s > magicmirror@2.23.0 install-fonts /home/pi/MagicMirror > echo "Installing fonts ... " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier Installing fonts ... up to date in 5.068s MagicMirror² installation finished successfully! up to date in 133.275s
-
RE: MMM-pihole was causing major bugs/ freezes
Done - but I am pretty sure I have sent them a note in past, also based on some of @sdetweil 's troubleshooting about package details - it seems inactive. I love the module - is there something I can do in terms of troubleshooting to revive it?
MM and pi-hole are my fav proejcts I ever made - followed recently by retropie.
-
RE: MMM-Strava only shows achievements, nothing else?
Yeah that did it! Thanks - again, wizardry appreciated!
-
RE: MMM-Strava only shows achievements, nothing else?
Tried that - authenticated again. I have some public and some private activities now. But now it does not show anything.
Here is my config file:
// Strava { module: "MMM-Strava", position: "bottom_right", config: { client_id: "XXXXXX", client_secret: "XXXXXXXXXXXx", mode: "table", activities: "ride", reloadInterval: 1000*60*30, stats: ["count", "distance", "moving_time", "achievements"], showprivatestats: true, } },
I deleted the old folder too.
-
RE: MMM-Strava only shows achievements, nothing else?
You all are just wizards!!
-
RE: MMM-Strava only shows achievements, nothing else?
@karsten13 and @lavolp3 Thanks both of you for your contributions!!
I know strava is having issues, and is pushing a lot pf services to paid customers only. I dont mind not being able to see any other athletes, I mostly use it for my own tracking, and so I just keep it private. I do know that the random changes in their API caused a lot of trouble for you guys.
So - is there a way to checkout the PR - and use private activities? Can I use something like
git checkout pr 38
and it will be the version @karsten13 PRed? -
RE: MMM-Strava only shows achievements, nothing else?
Whoops, didn’t realize this just pulls from public profile - since it is taking authorization. I made some activities public - do i have to make it public?