Read the statement by Michael Teeuw here.
Is adding Home Assistant the right way to go?
-
@British_Kiwi can you look at the output of npm start to see if an error is reported
-
@sdetweil not sure if I am doing this right. I thought I had made notes about how to check logs etc, but after some googling I have this (which I don’t think you were after):
admin@raspberrypihome:~/MagicMirror $ npm run config:check > magicmirror@2.33.0 config:check > node js/check_config.js [2025-10-10 07:21:14.145] [INFO] Checking config file /home/admin/MagicMirror/config/config.js ... [2025-10-10 07:21:14.197] [INFO] Your configuration file doesn't contain syntax errors :) [2025-10-10 07:21:14.198] [INFO] Checking modules structure configuration ... [2025-10-10 07:21:14.258] [ERROR] This module configuration contains errors: undefinedmust be objectNot too sure which module this is referring too.
Here are the pm2 logs. I’ve removed yesterdays stuff. All I have done this morning is pm2 restart 0 --updated-env (as it keeps saying something about environment variables which I haven’t seen prior to a few days ago.
admin@raspberrypihome:~/MagicMirror $ pm2 logs [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option) /home/admin/.pm2/pm2.log last 15 lines: PM2 | 2025-10-10T07:15:02: PM2 log: Stopping app:MagicMirror id:0 PM2 | 2025-10-10T07:15:03: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT] PM2 | 2025-10-10T07:15:03: PM2 log: pid=617000 msg=process killed PM2 | 2025-10-10T07:15:03: PM2 log: App [MagicMirror:0] starting in -fork mode- PM2 | 2025-10-10T07:15:03: PM2 log: App [MagicMirror:0] online /home/admin/.pm2/logs/MagicMirror-error.log last 15 lines: 0|MagicMir | [2025-10-10 07:15:04.251] [ERROR] This module configuration contains errors: 0|MagicMir | undefinedmust be object 0|MagicMir | [2025-10-10 07:15:04.252] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: TypeError: Cannot read properties of undefined (reading 'module') /home/admin/.pm2/logs/MagicMirror-out.log last 15 lines: 0|MagicMir | - VERSIONS: electron: 38.1.2; used node: 22.19.0; installed node: 22.18.0; npm: 10.9.3; pm2: 6.0.13 0|MagicMir | - ENV: XDG_SESSION_TYPE: tty; MM_CONFIG_FILE: undefined 0|MagicMir | WAYLAND_DISPLAY: wayland-0; DISPLAY: :0; ELECTRON_ENABLE_GPU: undefined 0|MagicMir | - RAM: total: 8059.20 MB; free: 6557.28 MB; used: 1501.92 MBIt does it look like there is an issue with a module, but I can’t work out which module. Any ideas on how to work it out?
At the moment I have commented out calendarext3, home assistant display, but I do have iframe showing on one of the pages.
-
@British_Kiwi if you start a private chat with me, you can paste your config and I will look at it. I agree on the ‘this’ module is unclear!..
sent you a message
-
@British_Kiwi said in Is adding Home Assistant the right way to go?:
This module configuration contains errors:
undefinedmust be objectaccidental extra comma between modules (commented out module, but the trailing comma was on a sep line)
{ module:"foo", }. . <--- that guy { module:"bar", }this is a bug,
opened issue
https://github.com/MagicMirrorOrg/MagicMirror/issues/3910as a separate way to avoid this, you can add
disable:true,after the module: line
to disable a module without having to comment it outdisabled: false,makes it active again
-
@sdetweil that’s a much cleaner way to disable a module. I will use that. Thanks again for your help.
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