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 4.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 Do not disturb
            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 Do not disturb
                    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 Do not disturb
                      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 Do not disturb
                        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
                          • S Do not disturb
                            sdetweil @Como
                            last edited by

                            @Como yes, as i said, i will debug this when i get nack to my desk on monday

                            as for my reiteration of the v3.0 api, you said ‘free api’ , and there is no such thing anymore. just trying yo be precise

                            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

                              Got it. Just wanted to make sure I was understanding too as I feel the oneweathermap site could be a little more clear on their keys. Thanks for all your hard work on this!

                              KristjanESPERANTOK 1 Reply Last reply Reply Quote 0
                              • KristjanESPERANTOK Offline
                                KristjanESPERANTO Module Developer @Como
                                last edited by

                                Side note: If you are having problems with MMM-OpenWeatherForecast, make sure you are using Tom Hirschberger’s active fork. You can check this by running git remote -v in the module’s directory.

                                S 1 Reply Last reply Reply Quote 1
                                • S Do not disturb
                                  sdetweil @KristjanESPERANTO
                                  last edited by

                                  @KristjanESPERANTO @Como
                                  rather than spend any time on this

                                  rename your existing module out of the way and install
                                  https://github.com/Tom-Hirschberger/MMM-OpenWeatherForecast

                                  no config changes I don’t think… (maybe lat/lon for location/locationID)
                                  Tom is very active in supporting his work…

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  S E 2 Replies Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @sdetweil
                                    last edited by

                                    @Como did you get this resolved?

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

                                      @sdetweil life has been busy. Hopefully I can do it this weekend. I’ll report afterward.

                                      1 Reply 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
                                        • S Do not disturb
                                          sdetweil @jms3700
                                          last edited by

                                          @jms3700 never use sudo for MagicMirror things

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          J 1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            jms3700 Project Sponsor @sdetweil
                                            last edited by

                                            @sdetweil

                                            Hello Sam,

                                            Indeed, I was wrong to use sudo. Thanks for the reminder!

                                            Jean-Marie

                                            1 Reply Last reply Reply Quote 0
                                            • S sdetweil has marked this topic as solved on
                                            • zdenekZ Offline
                                              zdenek
                                              last edited by

                                              Hi all
                                              maybe I’ve missed something, but did someone find the solution? If so, can describe setp-by-step how to do it?

                                              thanks

                                              S 1 Reply Last reply Reply Quote 0

                                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                              With your input, this post could be even better 💗

                                              Register Login
                                              • 1
                                              • 2
                                              • 1 / 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