Re-add a new Latest Observations screen
Some checks are pending
build-docker / Build Image (push) Waiting to run

This commit is contained in:
mrkmntal 2026-04-13 12:25:16 -04:00
commit e4f66d5bb0
10 changed files with 306 additions and 2 deletions

View file

@ -164,4 +164,5 @@ export {
setPrimaryLocationMarker,
loadNearbyObservationMarkers,
clearMarkers,
loadRadarCities,
};

View file

@ -9,7 +9,7 @@ const OPEN_METEO_FORECAST_PARAMETERS = [
].join('&');
const OPEN_METEO_RADAR_OBSERVATION_PARAMETERS = [
'hourly=temperature_2m,weather_code,is_day,wind_speed_10m,wind_gusts_10m',
'hourly=temperature_2m,weather_code,is_day,wind_speed_10m,wind_gusts_10m,wind_direction_10m',
'forecast_days=1',
'timezone=auto',
'models=best_match',
@ -121,6 +121,7 @@ const getOpenMeteoObservationSnapshot = async (lat, lon) => {
isDay: Boolean(forecast.hourly.is_day?.[nearestIndex] ?? 1),
windSpeed: forecast.hourly.wind_speed_10m?.[nearestIndex] ?? 0,
windGusts: forecast.hourly.wind_gusts_10m?.[nearestIndex] ?? 0,
windDirection: forecast.hourly.wind_direction_10m?.[nearestIndex] ?? 0,
timezone: forecast.timezone,
};