From 0dd11da06194989fee7e996357cf73a14adba5b3 Mon Sep 17 00:00:00 2001 From: ashley Date: Sun, 24 Aug 2025 13:07:33 +0200 Subject: [PATCH] Update html/weather.ejs --- html/weather.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');