Read the statement by Michael Teeuw here.
problem with config.js file
-
Hi,
I#m not very used with programming so i can’t solve the problem in my config.js{ module: "MMM-Hoymiles-Wifi", position: "top_left", config: { width: "300px", height: "320px", updateInterval: 60000, // in milli seconds frames : [ { src: 'http://192.168.178.150:5000'}, ] }, }, }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") { module.exports = config; } I always get errors like this;npm run config:check
magicmirror@2.33.0 config:check
node js/check_config.js[2025-11-01 15:16:44.895] [INFO] Checking config file /home/florian/MagicMirror/config/config.js …
[2025-11-01 15:16:44.994] [ERROR] Your configuration file contains syntax errors :(
Line 232 column 1: Parsing error: Unexpected token }Thanks a lot if everybody could help me.
Kinds regards
Florian
-
@Jose1701 so, at the top we have
var config = { modules: [ { module: x config: { } }. repeat for each module and at the bottom ( all of this is missing ) ] // end of modules list } // end of config variable /* ...... */ -
Thanks a lot. Got it working!
-
The
};
needs to be
},
So a comma iso of a semicolon. -
S sdetweil has marked this topic as solved on
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