MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED Weather module not loading

    Troubleshooting
    4
    9
    941
    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.
    • A
      aunrea last edited by

      After the DarkSky modules stopped working I decided to switch to the default weather module, but I can’t get it to show.

      Here is what I have in the config file:

      {
                  module: "weather",
                  position: "top_center",
                  header: "Weather",
                  config: {
                    weatherProvider: "openweathermap",
                    type: "forecast",
                    locationID: "5089578",
                    apikKey: "###",
                  },
                 
              },
      

      I am not sure why it doesn’t load.

      S 1 Reply Last reply Reply Quote 0
      • D
        DJBOOB66 last edited by

        Are you using the open weather key and not Darksky?

        1 Reply Last reply Reply Quote 0
        • A
          aunrea last edited by

          Yes, I created an account with openweathermap and generated a apikey which is what I am using.

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

            @aunrea forecast has a problem, the module creates urls inside, and then uses them, but the forecast ones aren’t ready when the request for the forecast comes… SO… it waits til the next refresh time… 10 minutes…

            set the initialLoadDelay parm to 100

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • A
              aunrea last edited by

              I have added the load delay but it still isn’t loading.

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

                @aunrea can u show that part of the module config?

                Sam

                Create a working config
                How to add modules

                A 1 Reply Last reply Reply Quote 0
                • J
                  joey last edited by

                  I am not sure this is the problem, but why are you using “apikKey”? My working OpenWeather module uses “appid”. Also, should it be “apiKey” (with only one “K”)?

                  I am using a config based off an old version, so I looked at the latest config.js.sample from the repo (https://github.com/MichMich/MagicMirror/blob/master/config/config.js.sample ), and it uses apiKey (with only one “K”).

                  {
                  			module: "weather",
                  			position: "top_right",
                  			config: {
                  				weatherProvider: "openweathermap",
                  				type: "current",
                  				location: "New York",
                  				locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                  				apiKey: "YOUR_OPENWEATHER_API_KEY"
                  			}
                  		},
                  

                  Lastly, if you have just generated your OpenWeather api key, it takes some amount of time (24 hours?) before it will start working. Hope this helps.

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

                    note that if u want forecast you need to set the endpoint

                    https://docs.magicmirror.builders/modules/weather.html#configuration-options, else it defaults to ‘/weather’

                    Sam

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • A
                      aunrea @sdetweil last edited by

                      @sdetweil I did not notice the 2 ks. That was the problem!

                      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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy