
            currentKeyIndex: 0,
            baseUrl: 'https://devapi.qweather.com/v7',
            location: 'ÁªèÂ∫¶,Á∫¨Â∫¶',
            retryDelay: 60000,
            lastFailTime: {}
        };

        const weatherCache = {
            data: null,
            lastUpdate: null,
            cacheTime: 15 * 60 * 1000
        };

        async function fetchWeatherData(forceUpdate = false) {
            const now = Date.now();
            if (!forceUpdate && 
                weatherCache.da