Queries the Open-Meteo API for hourly wind speed and gust forecasts
at a given latitude/longitude. Returns an empty tibble on error.
Usage
fetch_open_meteo_forecast(
lat,
lon,
station_id,
forecast_days = 7,
timeout = 30
)
Arguments
- lat
Latitude in decimal degrees.
- lon
Longitude in decimal degrees.
- station_id
Character station identifier (e.g. "M2").
- forecast_days
Integer number of forecast days (1-16, default 7).
- timeout
Numeric request timeout in seconds (default 30).
Value
Tibble with columns: station_id, time, wind_speed_kn, wind_gust_kn,
forecast_fetched_at. Empty tibble on error.
Examples
if (FALSE) { # \dontrun{
fetch_open_meteo_forecast(51.22, -9.99, "M2", forecast_days = 1)
} # }