Skip to content

An R package for downloading weather data from the FMI API.

License

Notifications You must be signed in to change notification settings

paasim/simplefmi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplefmi

R build status codecov

An R package for downloading weather data from the FMI API in a tidy format for personal use. Inspired by the fmi-package, but with a lot less functionality.

Installation

devtools::install_github("paasim/simplefmi")

Usage

library(simplefmi)
library(lubridate) # for date-variables

yesterday <- today() - days(1)
yesterday_0 <- ymd_hms(stringr::str_c(yesterday, " 00:00:00"))
yesterday_23 <- ymd_hms(stringr::str_c(yesterday, " 23:00:00"))

# get yesterday's hourly rain and temperature data from kaisaniemi
weather <- fmi_weather(yesterday_0, yesterday_23, hourly = TRUE)

# get yesterday's air quality index for mannerheimintie
airquality <- fmi_airquality(yesterday_0, yesterday_23)

# get yesterday's direct and diffuse radiation
radiatio <- fmi_radiation(yesterday_0, yesterday_23)

About

An R package for downloading weather data from the FMI API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published