• 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.

Version 2.30.0 weather module, stuck loading, worked fine before upgrade

Scheduled Pinned Locked Moved Troubleshooting
43 Posts 5 Posters 4.3k Views 5 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 Away
    sdetweil
    last edited by Jan 11, 2025, 10:49 PM

    Earlier this year, OpenWeather informed us users that they were discontinuing their old 2.5 api version (after 3 years of work)…

    this requires a new apikey, which requires a credit card backing.
    but some number of api requests per day are not charged, (as of 1/1/2025, 1000 api calls per day are ‘free’)

    see https://openweathermap.org/guide

    anyhow, we changed the module defaults to support the new ‘required’ api

    other users have mentioned that that have changed the apiVersion back to 2.5
    and set the weatherEndPoint back to /weather and /forecast (as appropriate)

    apiVersion:.2.5,
    weatherEndpoint:"/weather"
    or
    weatherEndpoint:"/forecast"
    

    from the MM doc
    Screenshot at 2025-01-11 16-47-45.png
    NOTE: as we understand it, at some point in the future, the 2.5 api will stop working at all… (jan1 , 2024, June 15 , 2024, Oct 14, 2024… who knows)

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    A R 2 Replies Last reply Jan 12, 2025, 12:50 AM Reply Quote 0
    • S sdetweil pinned this topic on Jan 11, 2025, 10:58 PM
    • S sdetweil referenced this topic on Jan 11, 2025, 10:58 PM
    • A Offline
      angeliKITTYx @sdetweil
      last edited by Jan 12, 2025, 12:50 AM

      @sdetweil I signed up for the new subscription and regenerated my API key (just to be safe). I remember it taking some time to show up the first time,so hopefully it will be back to normal in the morning! Thanks for the information.

      A 1 Reply Last reply Jan 14, 2025, 2:05 AM Reply Quote 0
      • A Offline
        angeliKITTYx @angeliKITTYx
        last edited by Jan 14, 2025, 2:05 AM

        @sdetweil After 24 hours, I’m still stuck at “loading…” could you confirm if I have the config set up properly? I signed up for the Onecall 3.0 API subscription, and it says it’s active.

        		{
        			module: "weather",
        			position: "top_left",
        			config: {
        				weatherProvider: "openweathermap",
        				apiVersion: "3.0",
        				type: "forecast",
        				weatherEndpoint: "/forecast",
        				lat: "xxx",
        				lon: "-xxx",
         				apiKey: "cxxx",
        				roundTemp: true,
        				showPrecipitationAmount: true,
        				tableClass: "medium",	
        				colored: true,
        			}
        		},
        		{
        			module: "weather",
        			position: "top_right",
        			config: {
        				weatherProvider: "openweathermap",
        				apiVersion: "3.0",
        				type: "current",
        				weatherEndpoint: "/weather",
        				lat: "xxx",
        				lon: "-xxx",
         				apiKey: "cxxx",
        				showWindDirectionAsArrow: true,
        				showSun: false,
        				roundTemp: true,
        			}
        		},
        
        S 1 Reply Last reply Jan 14, 2025, 2:09 AM Reply Quote 0
        • S Away
          sdetweil @angeliKITTYx
          last edited by sdetweil Jan 14, 2025, 12:45 PM Jan 14, 2025, 2:09 AM

          @angeliKITTYx said in Version 2.30.0 weather module, stuck loading, worked fine before upgrade:

            		apiVersion: "3.0",
            		type: "forecast",
            		weatherEndpoint: "/forecast",
          

          for apiVersion 3.0, you can ONLY use /onecall as the endpoint

          those endpoints /forecast, /… are only good with the old 2.5 apiVersion

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          A 1 Reply Last reply Jan 14, 2025, 10:53 AM Reply Quote 0
          • A Offline
            angeliKITTYx @sdetweil
            last edited by Jan 14, 2025, 10:53 AM

            @sdetweil not going to lie, but I don’t see anywhere saying we have to use /onecall as the endpoint, but that worked for me for both of my current and forecast modules. The location is stating my time zone city (which is 8 hours north) , but the information seems to be correct when comparing it to a weather website. Thank you for the help.

            S 1 Reply Last reply Jan 14, 2025, 12:45 PM Reply Quote 0
            • S Away
              sdetweil @angeliKITTYx
              last edited by Jan 14, 2025, 12:45 PM

              @angeliKITTYx openweather only provides /onecall in v3.0
              that is why the default is 3.0 and /onecall

              you don’t have to specify them since this release

              location? where do you see that?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              A 1 Reply Last reply Jan 14, 2025, 8:29 PM Reply Quote 1
              • A Offline
                angeliKITTYx @sdetweil
                last edited by Jan 14, 2025, 8:29 PM

                @sdetweil screenshot

                you can see on the right module it says “America/New_York” which is my timezone city, but my lat/lon is set to my home many states south. They used to both say that, but I added the “appendLocationNameToHeader” parameter to the left one to see what it would look like.

                Before the API update, it would properly display my home city. I’m pretty sure it’s displaying the correct weather information, but we surprisingly have similar weather to NY right now so it’s hard to confidently confirm.

                S 1 Reply Last reply Jan 14, 2025, 9:13 PM Reply Quote 0
                • S Away
                  sdetweil @angeliKITTYx
                  last edited by sdetweil Jan 14, 2025, 9:14 PM Jan 14, 2025, 9:13 PM

                  @angeliKITTYx yes, new openweather api does not return the location info anymore. so you have to add
                  appendLocationToHeader: false
                  and add your own header

                  i will add that info to the top entry as well

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  A 1 Reply Last reply Jan 14, 2025, 9:58 PM Reply Quote 0
                  • A Offline
                    angeliKITTYx @sdetweil
                    last edited by Jan 14, 2025, 9:58 PM

                    @sdetweil yeah that’s what I ended up doing. Thank you again for all your help the last few days! Glad to have everything back to normal.

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      Richard238
                      last edited by Feb 2, 2025, 12:42 PM

                      Ran the update, weather module failed , read this thread and can now have either weather or forecast. Can we no longer have both, like before?

                      S 1 Reply Last reply Feb 2, 2025, 12:46 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 1 / 5
                      • 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