SPA AND REACTIVE WEB · OPEN-METEO API
Weather, wherever you are.
Explore current conditions and a five-day forecast for your location, powered by Open-Meteo’s public weather API.
Open-MeteoLive forecasts · no API key
When you request weather for My location, your browser asks permission before sharing your coordinates. Preset locations use their own coordinates. Coordinates are sent to Open-Meteo to retrieve the forecast.
A local forecast, in one click
Select Use my location to see the current temperature, conditions, and the next five days of weather.
UNDER THE HOOD
How this page works
When you select Use my location, your browser asks for permission. The page uses the browser Geolocation API, which can determine your location from GPS, Wi-Fi, cellular networks, or other device sources. Location access requires HTTPS or localhost. The request can use a cached position up to two minutes old and times out after 15 seconds.
After browser location access is granted, JavaScript passes the latitude and longitude to the interactive Blazor page. Preset locations use fixed coordinates. The server then calls the Open-Meteo Forecast API at
api.open-meteo.com/v1/forecast for current conditions and a five-day daily forecast. The request asks for Celsius, wind speed in km/h, and the location's automatic time zone.The server reads the API's JSON response. Weather codes are mapped to condition names and icons; dates, temperatures, and precipitation probabilities are formatted for display. If location access or the API request fails, the page shows an error message.
Blazor updates the page with the current temperature, feels-like temperature, humidity, wind speed, local time, and time zone. The forecast cards show each day's condition, high and low temperatures, and maximum precipitation probability. The selected location label is shown; this page does not look up a street address or place name.