• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 does not load

Scheduled Pinned Locked Moved Unsolved Troubleshooting
11 Posts 4 Posters 523 Views 4 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
    canlio
    last edited by Dec 20, 2024, 6:34 PM

    Hi,

    I used to have a working environment with a working weather module. For a couple of weeks, the weather module shows only “loading …”.

    During the startup I see the entry:

    No helper found for module: weather. 
    

    but I did not see anywhere a missing file nor a config option for a helper file for weather.

    I simplified my configuration to track down the issue, I was reading through threads and asked AI engines, but no luck at all. When calling
    curl “https://api.openweathermap.org/data/2.5/weather?q=Berlin&appid=MY_API_KEY” I get a perfect result.

    The current simple configuration is like follows:

            {
                module: "weather",
                position: "top_right",
                config: {
                    weatherProvider: "openweathermap",
                    type: "current",
                    location: "Berlin",
                    apiKey: "xxxx"
                }
    }
    

    Do you have any idea how I can debug the issue further down?

    Thanks for your help!

    S 1 Reply Last reply Dec 20, 2024, 6:46 PM Reply Quote 0
    • S Offline
      sdetweil @canlio
      last edited by sdetweil Dec 20, 2024, 6:47 PM Dec 20, 2024, 6:46 PM

      @canlio weather is done all in browser, so open the developer window, ctrl-shift-i, select the console tab, put weath in the filter field.

      openweather has changed their business model, the apikey is backed by a credit card

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Dec 20, 2024, 8:26 PM Reply Quote 1
      • C Offline
        canlio @sdetweil
        last edited by Dec 20, 2024, 8:26 PM

        @sdetweil thanks a lot for your reply!

        I can see in the console log:

        GET https://api.openweathermap.org/data/3.0/forecast?id=2516479&units=metric&lang=de&APPID=%my_api_key_here%
        

        Status code: 404 not found

        When I call the URL with my browser I get

        {"cod":"404","message":"Method not supported"}
        

        AAH!
        So, I see that the weather module does not call “2.5” per default, as written in the documentation, but it’s the 3.0 API being called, where the construct of the URL won’t help. So, I’ll add

        apiVersion:"2.5",
        

        to my configuration of the weather module!

        Once changed, it worked out!
        Thanks a lot for that hint! I spent about 6 hours of my day on this without applying troubeshooting 101 by not looking in the browser console log …

        S 1 Reply Last reply Dec 20, 2024, 8:48 PM Reply Quote 1
        • S Offline
          sdetweil @canlio
          last edited by Dec 20, 2024, 8:48 PM

          @canlio cool, but, its not supposed to work. they told us publicly 2.5 was supposed to stop working in October… hmmmm

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C A 2 Replies Last reply Dec 20, 2024, 11:32 PM Reply Quote 1
          • C Offline
            canlio @sdetweil
            last edited by Dec 20, 2024, 11:32 PM

            @sdetweil that’s really weird, as I have proof it’s working.

            1 Reply Last reply Reply Quote 1
            • A Offline
              Assassins @sdetweil
              last edited by Dec 21, 2024, 10:21 AM

              @sdetweil is work here with 2.5 and not 3.0 om my MM to 2.29.0

              S 1 Reply Last reply Dec 21, 2024, 12:04 PM Reply Quote 0
              • S Offline
                sdetweil @Assassins
                last edited by Dec 21, 2024, 12:04 PM

                @Assassins for 3.0 you must get a new apikey which requires a credit card

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                A 1 Reply Last reply Dec 21, 2024, 1:49 PM Reply Quote 0
                • A Offline
                  Assassins @sdetweil
                  last edited by Dec 21, 2024, 1:49 PM

                  @sdetweil bit why pair for 3.0, when 2.5 work, and free ???

                  S 1 Reply Last reply Dec 21, 2024, 2:01 PM Reply Quote 0
                  • S Offline
                    sdetweil @Assassins
                    last edited by sdetweil Dec 21, 2024, 2:02 PM Dec 21, 2024, 2:01 PM

                    @Assassins because they have said they are turning off 2.5
                    the first 1000 calls per day are not charged on 3.0, currently

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    C 1 Reply Last reply Dec 21, 2024, 2:59 PM Reply Quote 0
                    • C Offline
                      canlio @sdetweil
                      last edited by Dec 21, 2024, 2:59 PM

                      @sdetweil as long as it keeps working with 2.5, I’ll keep it. Once it won’t work, I’ll subscribe for 3.0.

                      K 1 Reply Last reply Dec 24, 2024, 10:12 AM Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        1/11
                        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