Skip to content

Commit

Permalink
API updated weatherapi.com
Browse files Browse the repository at this point in the history
Signed-off-by: Pranshul <[email protected]>
  • Loading branch information
PranshulGG authored Oct 6, 2024
1 parent 75bc67a commit d3576fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/assets/app/renderWeather.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {

Expand Down Expand Up @@ -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 => {

Expand Down Expand Up @@ -1223,4 +1223,4 @@ function clickForecastItem(index){
}
}
}, 300);
}
}

0 comments on commit d3576fb

Please sign in to comment.