Description Usage Arguments Details Value
Download data from the fmi weather API. If the request is larger than the api allows, it is split into multiple parts. If this results to more than 30 queries, a warning message is printed.
1 2 3 4 5 6 7 8 9 10 | fmi_weather(
start,
end = start,
station_id = "100971",
params = ifelse(hourly, "t2m,r_1h", "tday,rrday"),
hourly = FALSE,
simplify_names = TRUE,
verbose = FALSE,
fmi_apikey = NA_character_
)
|
start |
Start time as a POSIXt-object obtained with e.g. lubridate::as_datetime(). |
end |
End time as a POSIXt-object. Defaults to |
station_id |
The weather station id. Defaults to |
params |
Query parameters, a comma separated string, such as
|
hourly |
If |
simplify_names |
If |
verbose |
If |
fmi_apikey |
An optional fmi-apikey. See http://en.ilmatieteenlaitos.fi/open-data-manual. |
The available variables are listed below, more information can be found from https://en.ilmatieteenlaitos.fi/open-data-manual.
The following variables are available for hourly data:
t2m
: temperature
ws_10min
: wind speed
wg_10min
: gust speed
wd_10min
: wind direction
n_man
: cloud cover
rh
: relative humidity
td
: dew point
r_1h
: rain amount
ri_10min
: rain intensity
snow_aws
: snow depth
p_sea
: air pressure
vis
: visibility
wawa
: weather code
The following variables are available for daily data:
rrday
: rain
tday
: temperature
snow
: snow depth
tmin
: temperature (min)
tmax
: temperature (max)
tg_pt12h_min
: minmum ground temperature
A tibble with date (& time if hourly data is requested) in the first
column and the variables specified in params
in the other columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.