diff --git a/app/src/main/assets/app/apiKeysRotation.js b/app/src/main/assets/app/apiKeysRotation.js index 2390a51f3..13a6b9fee 100644 --- a/app/src/main/assets/app/apiKeysRotation.js +++ b/app/src/main/assets/app/apiKeysRotation.js @@ -1,26 +1,32 @@ const apiKeysDaily = [ -MAIN_KEYS +MAIN ]; const apiKeysAlerts = [ -MAIN_KEYS +MAIN + ]; const apiKeysCityName = [ -MAIN_KEYS +MAIN + + ]; const apiKeysGeo = [ -MAIN_KEYS +MAIN + ]; const apiKeysVisual = [ -MAIN_KEYS +MAIN + ]; const astronomyApiKeys = [ -MAIN_KEYS +MAIN + ]; diff --git a/app/src/main/assets/app/fetch.js b/app/src/main/assets/app/fetch.js index 2d363557a..b07011560 100644 --- a/app/src/main/assets/app/fetch.js +++ b/app/src/main/assets/app/fetch.js @@ -5,7 +5,7 @@ function getCountryName(code) { async function DecodeWeather(lat, lon) { - const apiKey = 'MAIN_KEYS'; + const apiKey = 'MAIN'; const url = `https://api.timezonedb.com/v2.1/get-time-zone?key=${apiKey}&format=json&by=position&lat=${lat}&lng=${lon}`; try { diff --git a/app/src/main/assets/app/renderWeather.js b/app/src/main/assets/app/renderWeather.js index 6af12aff4..c6a83d0d0 100644 --- a/app/src/main/assets/app/renderWeather.js +++ b/app/src/main/assets/app/renderWeather.js @@ -1050,7 +1050,7 @@ function UvIndex(latitude, longitude) { function MoreDetails(latSum, lonSum) { - fetch(`https://api.weatherapi.com/v1/forecast.json?key=MAIN_KEYS&q=${latSum},${lonSum}`) + fetch(`https://api.weatherapi.com/v1/forecast.json?key=MAIN&q=${latSum},${lonSum}`) .then(response => response.json()) .then(data => { @@ -1092,7 +1092,7 @@ function MoreDetails(latSum, lonSum) { if (SelectedPrecipitationUnit === 'in') { Precipitation = mainData.totalprecip_in.toFixed(2) + ' in'; } else { - Precipitation = inchesToMm(mainData.totalprecip_in.toFixed(2)) + ' mm' + Precipitation = inchesToMm(mainData.totalprecip_in).toFixed(2) + ' mm' } let precipitationMessage; if (mainData.totalprecip_in > 0) { @@ -1203,7 +1203,7 @@ function MoreDetails(latSum, lonSum) { } function astronomyData(latSum, lonSum) { - fetch(`https://api.weatherapi.com/v1/astronomy.json?key=MAIN_KEYS&q=${latSum},${lonSum}`) + fetch(`https://api.weatherapi.com/v1/astronomy.json?key=MAIN&q=${latSum},${lonSum}`) .then(response => response.json()) .then(data => { @@ -1272,7 +1272,7 @@ function astronomyData(latSum, lonSum) { function FetchAlert(lat, lon){ - fetch(`https://api.weatherapi.com/v1/alerts.json?key=MAIN_KEYS&q=${lat},${lon}`) + fetch(`https://api.weatherapi.com/v1/alerts.json?key=MAIN&q=${lat},${lon}`) .then(response => response.json()) .then(data => { diff --git a/app/src/main/assets/icons/leaf.png b/app/src/main/assets/icons/leaf.png new file mode 100644 index 000000000..073ce3a03 Binary files /dev/null and b/app/src/main/assets/icons/leaf.png differ