Updated 1.6.8

This commit is contained in:
Pranshul committed 2024-10-18 20:16:13 +05:30
1 parent acff83428b
commit 2f03cded8d
4 files changed
+17 -11

No files matched your search

+12 -6
View File
@@ -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
];
+1 -1
View File
@@ -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 {
+4 -4
View File
@@ -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 => {
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB