From df1566ddce2ef17608ef7f6ac71036ab53e995b5 Mon Sep 17 00:00:00 2001 From: Dwayne Hulsman <110388423+dhulsmaninfodatek@users.noreply.github.com> Date: Wed, 16 Oct 2024 08:18:58 +0200 Subject: [PATCH] Make openweather map from 2.5 to 3.0, 2.5 gives 401's on free plans --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index b509584..6176ffd 100644 --- a/src/utils.js +++ b/src/utils.js @@ -134,7 +134,7 @@ const utils = { const units = UNIT_MAPPINGS[opts.units] || "standard"; return fetch( - `https://api.openweathermap.org/data/2.5/onecall?appid=${opts.apiKey}` + + `https://api.openweathermap.org/data/3.0/onecall?appid=${opts.apiKey}` + `&lat=${opts.lat}` + `&lon=${opts.lng}` + `&units=${units}` +