diff --git a/html/weather.ejs b/html/weather.ejs index 72f29da7..a9aca53a 100644 --- a/html/weather.ejs +++ b/html/weather.ejs @@ -274,7 +274,7 @@ $('#locChip').textContent=state.name; const tu=state.units==='metric'?"celsius":"fahrenheit"; const wu=state.units==='metric'?"kmh":"mph"; - const url=new URL('https://api.open-meteo.com/v1/forecast'); + const url = new URL("/api/weather", location.origin); url.search={}.toString(); url.searchParams.set('latitude',lat);url.searchParams.set('longitude',lon); url.searchParams.set('current','temperature_2m,relative_humidity_2m,apparent_temperature,is_day,precipitation,weather_code,wind_speed_10m,wind_direction_10m,pressure_msl');