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 works for current, shows 'loading' for forecast

    Scheduled Pinned Locked Moved Solved Troubleshooting
    12 Posts 3 Posters 3.3k 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.
    • C Offline
      CliffordW
      last edited by

      Strangest thing. I copy / pasted the code and changed it from current to forecast, but now forecast won’t load. (apikey truncated)

      	```
      

      {
      module: “weather”,
      // https://docs.magicmirror.builders/modules/currentweather.html#using-the-module
      position: “top_right”,
      config: {
      type: ‘current’,
      locationID: “6183235”,
      timeFormat: 12,
      roundTemp: true,
      apiKey: “4cb7ea4dfe63102a5735”
      }
      },
      {
      module: “weather”,
      // https://docs.magicmirror.builders/modules/currentweather.html#using-the-module
      position: “top_right”,
      config: {
      type: ‘forecast’,
      locationID: “6183235”,
      timeFormat: 12,
      roundTemp: true,
      apiKey: “4cb7ea4dfe63102a5735”
      }
      },

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

        @matpi awesome. can u mark this resolved? 3dots to the right, click the menu

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @CliffordW look at the dev window. Ctrl-shift-i on the keyboard. Select the tab labeled ‘console’, and scroll up. U can also filter by module by placing part of the module name in the filter field.

          More than likely u need a different API key, cause of the different data

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            CliffordW @sdetweil
            last edited by

            @sdetweil I created a new api key, and also commented out the ‘current’ module and no change. I brought up the console, but frankly I don’t know what I’m looking for.

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

              @CliffordW put ‘fore’ (no quotes) in the filter field. You are looking for anything that seems like an error, or rejection

              There are two consoles. The dev console from the UI part, and the terminal console from the node_helper. You would see the latter in pm2 logs, or the terminal window where u did npm start

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                CliffordW @sdetweil
                last edited by CliffordW

                @sdetweil This is the closest thing I can find reporting as an error. However, I commented out the forecast module, and this error is still reported.

                https://imgur.com/UrEI7tg

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

                  @CliffordW that’s because custom.css isn’t there by default.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    CliffordW @sdetweil
                    last edited by CliffordW

                    @sdetweil Still not working.Any suggestions how I might troubleshoot this?

                    I found this in the log:

                    Failed to load resource: the server responded with a status of 401 (Unauthorized)

                    A very long url to openweather is included.

                    I tried using the ‘current’ apikey for forecast, the error disappeared, but still no display.

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      matpi
                      last edited by

                      I have the exact same problem.
                      @CliffordW Did you find a solution to solve the problem?

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

                        @matpi did u get new apikeys from openweather?

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          matpi @sdetweil
                          last edited by

                          @sdetweil no I use this key for some time know 2-3 years at least. But the key works when it is placed in the current weather module. So I do not think the key is the issue.

                          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