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.

    Weather Module LocationID Error

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 2 Posters 456 Views 2 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.
    • S Offline
      Stardyze
      last edited by

      Hello I am fairly new to the community so please bare with me haha

      I’m currently setting up my Magic Mirror to show the default weather module for now, I received a LocationID and API key from openweather.com and when I run config:check it says that it doesn’t recognize the token “LocationID”

      Here is my current config of it

      {
      module: “weather”,
      position: “top_right”,
      config: {
      weatherProvider: “openweathermap”,
      type: “current”,
      location: “New Berlin”
      locationID: “5264381”, //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      apiKey: “8c4d8ab59d1b3f0277d2aed5a9561da5”
      }
      },

      Thank you!

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Stardyze
        last edited by

        @stardyze unuxpected token, means the line before doesn’t end with a comma

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        S 1 Reply Last reply Reply Quote 2
        • S Offline
          Stardyze @sdetweil
          last edited by

          @sdetweil Okay that did fix that, now it’s telling me there’s an unexpected token “modules” (The one close to the top of the config file)

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Stardyze
            last edited by

            @stardyze ok?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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