From d087b9370199f653e26ff16436110dacea4775be Mon Sep 17 00:00:00 2001 From: Xavier Williams <54913720+xmanwms95@users.noreply.github.com> Date: Mon, 15 Apr 2024 22:50:58 -0400 Subject: [PATCH] fix: use openweather api 3.0 openweather api 2.5 will be deprecated in June 2024 https://openweathermap.org/one-call-transfer --- node_helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node_helper.js b/node_helper.js index 4a9d1ae..bd0492d 100644 --- a/node_helper.js +++ b/node_helper.js @@ -41,7 +41,7 @@ module.exports = NodeHelper.create({ } else { //make request to OpenWeather One Call API - var url = "https://api.openweathermap.org/data/2.5/onecall?" + + var url = "https://api.openweathermap.org/data/3.0/onecall?" + "lat=" + payload.latitude + "&lon=" + payload.longitude + "&exclude=" + "minutely" + @@ -71,4 +71,4 @@ module.exports = NodeHelper.create({ }, -}); \ No newline at end of file +});