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-OpenWeatherMapForecast stuck on Loading....

    Scheduled Pinned Locked Moved Utilities
    63 Posts 16 Posters 37.8k Views 18 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
      sdetweil
      last edited by

      @ally said in MMM-OpenWeatherMapForecast stuck on Loading....:

      0|MagicMir | [26.08.2022 12:24.33.069] [LOG] [MMM-OpenWeatherMapForecast] 26-Aug-22 12:24 ** ERROR ** null

      isn’t that helpful!..

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @ally i used your config from

        https://forum.magicmirror.builders/topic/17141/mmm-openweathermapforecast-stuck-on-loading/1?_=1661513140571

        with my openweather apikey and it worked without issue.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S sdetweil referenced this topic on
        • S Offline
          sdetweil @ally
          last edited by

          @ally edit the node_helper.js of the module and change this

                              } else {
                                  console.log("[MMM-OpenWeatherMapForecast] " + moment().format("D-MMM-YY HH:mm") + " ** ERROR ** " + error);
                              }
          

          to this

                              } else {
                                  if(response.statusCode != 200) 
                                  console.log("[MMM-OpenWeatherMapForecast] " + moment().format("D-MMM-YY HH:mm") + " ** bad status ** " + response.statusCode);
                                      else
                                  console.log("[MMM-OpenWeatherMapForecast] " + moment().format("D-MMM-YY HH:mm") + " ** ERROR ** " + error);
                              }
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil any thoughts on why this is occurring on a fresh install of MM and this module? I also just checked the MM change logs and i am definitely running the latest version (## [2.20.0] - 2022-07-02).

            Ally

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

              @ally no idea. but without the code change, we won’t know what the error is…

              only thing I can think of is the apikey has a leading or trailing space, making it bad

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil yeah, I was worried that might be the case as well, which is why I went to a fresh install and left the original weather module using the same key.

                Same key, same quotes, no spaces, default settings and this is the result.

                Config is setup for default weather module current, then forecast and then MMM-OpenWeatherMapForecast, which is stuck on Loading.

                MM_000.jpg

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

                  @ally again need the startup messages w the new code

                  I copy/pasted the config u supplied exactly and change to my API key and it worked as expected. so it’s not a config problem.

                  it’s an apikey problem

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil I deleted the old api key and made a new one, same result. The default weather modules load and this one doesn’t.

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

                      @ally what is the message from the terminal window w the new code?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      A 1 Reply Last reply Reply Quote 0
                      • S Offline
                        stevengill @ally
                        last edited by

                        @ally I removed the location name (e.g. New York) and just used the locationID number and it started to work

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