mirror of
https://github.com/PranshulGG/WeatherMaster.git
synced 2026-10-23 03:24:11 -05:00
API updated weatherapi.com
Signed-off-by: Pranshul <pranshul.devmain@gmail.com>
This commit is contained in:
1 parent
75bc67a62c
commit
d3576fb557
1 file changed
+3
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user