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.

    MMM-OpenWeatherForecast - loading issue

    Scheduled Pinned Locked Moved Solved Troubleshooting
    23 Posts 7 Posters 1.6k Views 8 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.
    • zdenekZ Offline
      zdenek
      last edited by

      Dears
      I tried to find simple way to solve the problem, but Search returns tons of posts and I’ve no clue, whichone is the correct. I know, that there is change in API, so - what I’ve did:

      1. 6effca4c-ce2b-4b11-8e9e-0539450a749a-image.png so new API associated with card
      2.  	    module: "MMM-OpenWeatherForecast",
         	    position: "top_right",
         	    //header: "Forecast",
         	    config: {
         	      apiBaseURL: "https://api.openweathermap.org/data/3.0/onecall?",   
         	      apikey: "api_key", //Home_MM Api		      
         	      latitude: 50.757690,            //number works here
         	      longitude: 15.033640,          //so does a string
         	      iconset: "5c",
         	      language: "cz",
         	      colored: true,
         	      concise: true,
         	      weatherEndpoint: '/onecall',
         	      apiVersion: '3.0',
         	      //requestDelay: "2000",
         	      showFeelsLikeTemp: true
         		    }
         	},
        
      3) I've generated new key
      ![eb8e0e31-2dcd-4dda-bab8-c93965680d9b-image.png](/assets/uploads/files/1730533193487-eb8e0e31-2dcd-4dda-bab8-c93965680d9b-image.png) 
      
      but MM just "loading" ![f5f2757a-3384-468c-9fc8-e48f897fa4bc-image.png](/assets/uploads/files/1730533324100-f5f2757a-3384-468c-9fc8-e48f897fa4bc-image.png) 
      
      questions:
      do you see any error in Code?
      How do I find, if the new key is 3.0 or old (in the list of keys)?
      
      Thanks and sorry fo english
      Z
      zdenekZ S 2 Replies Last reply Reply Quote 0
      • J Offline
        jms3700 Project Sponsor
        last edited by

        I had to change the node_helper.js to call the right api moet in node_helper.js (3.0 instead of 2.5)
        sudo nano node_helper.js

            //make request to OpenWeather One Call API
        

        // var url = “https://api.openweathermap.org/data/2.5/onecall?” +
        var url = “https://api.openweathermap.org/data/3.0/onecall?” +

        This solution works for me

        S 1 Reply Last reply Reply Quote 0
        • zdenekZ Offline
          zdenek @zdenek
          last edited by

          hmm, some pics doesn’t upload, so “loading” 37d738f9-4c86-4672-8e57-0e1612f09354-image.png
          and list of keys aaf5a2fb-978f-49f8-8cbf-0b29c21f6526-image.png

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

            @zdenek take off the apiBase, let us handle that

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            zdenekZ 1 Reply Last reply Reply Quote 0
            • zdenekZ Offline
              zdenek @sdetweil
              last edited by

              @sdetweil done, but nothing changed - still “loading”

              1 Reply Last reply Reply Quote 0
              • Z Offline
                zauberclown
                last edited by

                I am facing the exact same challenge.
                Also followed the guidance as you did.

                So, you are not alone…which makes me think if there might be an issue on openweathermap since everbody is hammering their API with their tests this weekend?

                1 Reply Last reply Reply Quote 0
                • C Offline
                  Como
                  last edited by

                  I am also having issues with the module being stuck on loading. In looking at the the debugging (ctrl+shift+i) when magic mirror is up I do get a 404 error for communicating to openweather. I have not changed any settings and do not have a line in my config file with the api base url. Other than that, I’m in the same boat as OP where I signed up to get the free API 3.0 and generated a new key… just can’t get anything working.

                  S 3 Replies Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Como
                    last edited by

                    @Como 3.0 apikey requires a credit card. today first 1000 api calls are not charged

                    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 @Como
                      last edited by

                      @Como 404 is not found, so the api url is incorrect

                      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 @Como
                        last edited by

                        @Como openweather changed their business model, only the 3.0 api is available. any 2.5 api requests will fail

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          Como
                          last edited by

                          I realize that the api 3.0 is required. I mentioned I signed up for it as seen below. f90f3419-0d5e-429b-818e-eea6b4d8fd20-image.png
                          I also generated a new key which is showing as active. So unless I’m generating keys that are no longer allowed per openweather (which I wouldn’t think is possible), then I’m not sure what the problem is.

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