• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 641 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 May 6, 2021, 12:13 PM

    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 May 6, 2021, 12:19 PM Reply Quote 0
    • S Offline
      sdetweil @Stardyze
      last edited by May 6, 2021, 12:19 PM

      @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 May 6, 2021, 12:22 PM Reply Quote 2
      • S Offline
        Stardyze @sdetweil
        last edited by May 6, 2021, 12:22 PM

        @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 May 6, 2021, 1:29 PM Reply Quote 0
        • S Offline
          sdetweil @Stardyze
          last edited by May 6, 2021, 1:29 PM

          @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
          1 / 1
          • First post
            1/4
            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