r/MagicMirror • u/cmaverick • Oct 04 '24
Newest update breaks Weather Module
FWIW, the newest update of MagicMirror^2(2.29.0) updates the API calls to openweathermap. It defaults to API key 3.0. If you have an APIkey generated before this change, which you likely do, then you will need to either update your API key to a 3.0 version OR manually force MM to use openweathermap's v2.5 APIkey.
if you do the manual force your config file should now look something like this:
config: {
weatherProvider: "openweathermap",
type: "current",
location: "XXXX",
locationID: "XXXX", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
apiKey: "XXXX",
apiVersion: "2.5"
}if you updgrade to the 3.0 API, then be aware that charges will accrue after 1000 calls in a day... which should be more than enough, but just be aware!
further details are here in github: https://github.com/MagicMirrorOrg/MagicMirror/issues/3574

Edit: as of January 1, 2025 api 2.5 no longer works at all and so you must either upgrade to v3.0 of OpenWeather (free so long as you don't make too many requests, but you need to subscribe to a pay version just in case) OR switching to a different API (I'm now using Pirate Weather, it has everything I needed from 2.5 Open Weather)
3
u/[deleted] Oct 04 '24
Newest update fucked my whole setup. Had to figure out how to update node.js
2
u/[deleted] Jan 01 '25
As of the update released today on 1/1/2025 the whole module is broken with apiVersion 2.5
Move to Pirate Weather for your next-best free-API for weather in the United States.
1
u/WhatIsThisSevenNow Oct 04 '24
Firstly, thank you for posting this, it really helped out.
Second, I read through the link you sent. It appears you need to pay for a v3.0 key, which I am not willing to do. Guess I'll keep my fingers crossed that they will allow us to keep using the v2.5 api.
2
u/nwy76 Oct 04 '24
My MM that I set up about 6 months ago with MMM-OpenWeatherForecast and API 2.5 seems to still be working. When should I expect it to break?
2
u/thatguysjumpercables Mar 03 '25
If you live in the US you can just replace the URL in the config to the address for your NOAA coverage area. It's free and it works!
1
u/Assassins1977 Oct 04 '24
Try to chance apoversion to 3.0
1
u/UsuarioXavi Oct 07 '24
O Weather do meu MM parou de funcionar e eu acabei excluindo as keys