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.

    Quick Syntax Error

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    20 Posts 5 Posters 4.4k Views 5 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.
    • evroomE Offline
      evroom
      last edited by

      I would try changing this:

      tokenLocationIQ : "secret",
      

      to this:

      tokenLocationIQ: "secret",
      

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

      Test environment:
      MagicMirror version: v2.30.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 Offline
        smartsoldier
        last edited by

        I tried taking out the comma after YYYY, and moving the : closer to tokenLocationIQ. Neither worked. I’m not really sure how Sean managed to run without syntax errors when I am using the exact same config…

        ? 2 Replies Last reply Reply Quote 0
        • ? Offline
          A Former User @smartsoldier
          last edited by

          @smartsoldier I’ve copied from your post and nothing changed except some private values(tokens)

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @smartsoldier
            last edited by

            @smartsoldier
            Most of the syntax errors could be raised by missing or exceeding bracket, comma.
            I suggest you remove configuration of modules one-by-one and try.
            Or you should upload a complete config.js here.

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

              I also do not get an error when copy/pasting your config lines.

              $ npm run config:check
              

              does not give an error.
              You should try it yourself; a very useful command.
              Perhaps the error does not apply to the MMM-DropboxWallpaper config ?

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

              Test environment:
              MagicMirror version: v2.30.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 Offline
                smartsoldier
                last edited by

                Ok well I used npm run config:check and it found no errors, but I still get the syntax error message is red when I start up the MM. What is happening!??!

                ? 1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @smartsoldier
                  last edited by

                  @smartsoldier We don’t know. Remove all the modules in config.js and add one-by-one. Let’s see what happens.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    smartsoldier @Guest
                    last edited by

                    @sean If I remove this module everything runs fine, then if I put it back this happens. Does that mean its this module or no?

                    ? 1 Reply Last reply Reply Quote 0
                    • evroomE Offline
                      evroom
                      last edited by

                      Are you willing to share the syntax error with us?
                      I thought you were referring to the “create config file” message at startup.

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

                      Test environment:
                      MagicMirror version: v2.30.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
                      • ? Offline
                        A Former User @smartsoldier
                        last edited by

                        @smartsoldier Of course, it could be the fails of that module configuration.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 2 / 2
                        • 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