From d3576fb55722d6d2d434dd267eebeb8965877705 Mon Sep 17 00:00:00 2001 From: Pranshul Date: Sun, 6 Oct 2024 20:20:05 +0530 Subject: [PATCH] API updated weatherapi.com Signed-off-by: Pranshul --- app/src/main/assets/app/renderWeather.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/assets/app/renderWeather.js b/app/src/main/assets/app/renderWeather.js index e2459ba4..e2d9a123 100644 --- a/app/src/main/assets/app/renderWeather.js +++ b/app/src/main/assets/app/renderWeather.js @@ -927,7 +927,7 @@ function UvIndex(latitude, longitude) { function MoreDetails(latSum, lonSum) { - fetch(`https://api.weatherapi.com/v1/forecast.json?key=ef2cb48d90984d828a8140518240209&q=${latSum},${lonSum}`) + fetch(`https://api.weatherapi.com/v1/forecast.json?key=KEY_API&q=${latSum},${lonSum}`) .then(response => response.json()) .then(data => { @@ -1069,7 +1069,7 @@ function MoreDetails(latSum, lonSum) { } function astronomyData(latSum, lonSum) { - fetch(`https://api.weatherapi.com/v1/astronomy.json?key=ef2cb48d90984d828a8140518240209&q=${latSum},${lonSum}`) + fetch(`https://api.weatherapi.com/v1/astronomy.json?key=KEY_API&q=${latSum},${lonSum}`) .then(response => response.json()) .then(data => { @@ -1223,4 +1223,4 @@ function clickForecastItem(index){ } } }, 300); - } \ No newline at end of file + }