MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    problem with config.js file

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 3 Posters 463 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Jose1701
      last edited by

      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

      S evroomE 2 Replies Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Jose1701
        last edited by sdetweil

        @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 
        
        /* ...... */
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          Jose1701 @sdetweil
          last edited by

          @sdetweil

          Thanks a lot. Got it working!

          1 Reply Last reply Reply Quote 1
          • evroomE Offline
            evroom @Jose1701
            last edited by

            @Jose1701

            The
            };
            needs to be
            },
            So a comma iso of a semicolon.

            MagicMirror version: 2.33.0
            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            Test environment:
            MagicMirror version: v2.33.0
            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            1 Reply Last reply Reply Quote 0
            • 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
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy