diff --git a/frontend/src/components/Climate.jsx b/frontend/src/components/Climate.jsx index 3f4f6834..8e55916c 100644 --- a/frontend/src/components/Climate.jsx +++ b/frontend/src/components/Climate.jsx @@ -23,7 +23,7 @@ const url = { currentWeather: (lat, lon) => `https://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lon}`, airPollution: (lat, lon) => - `http://api.openweathermap.org/data/2.5/air_pollution?lat=${lat}&lon=${lon}`, + `https://api.openweathermap.org/data/2.5/air_pollution?lat=${lat}&lon=${lon}`, forecast: (lat, lon) => `https://api.openweathermap.org/data/2.5/forecast?lat=${lat}&lon=${lon}`, geo: query => `https://api.openweathermap.org/data/2.5/weather?q=${query}`, @@ -141,7 +141,7 @@ const Climate = () => {
{/* Left Section - Current Weather and 5-Day Forecast */}
{
{/* Current Weather Icon */} {weatherData.weather[0].description} @@ -177,7 +177,7 @@ const Climate = () => {
{/* Weather Icon for Each Day */} {forecast.weather[0].description} @@ -269,7 +269,7 @@ const Climate = () => { {getTime(entry.dt, weatherData.timezone)}

{entry.weather[0].description}