Author: Chloe Morgan
License: GPL-3
openweatherr aims to make pulling basic weather data from the Open Weather Map API easy so you can spend more time on analysis.
Get one here.
Historical weather limitations depend on your liciense see here
Basic License - last 5 days historical data, 60 calls/minute - 1,000,000 calls/month
| date | hour | temp | main | description | wind_speed | | ------------- | ---- | ----- | -------|--------------|------------| | 2021-09-11 | 1 | 17.74 | Clouds | broken clouds| 0.45 | | 2021-09-11 | 2 | 17.65 | Mist | mist | 0.45 | | 2021-09-11 | 3 | 17.61 | Rain | light rain | 0.89 | | 2021-09-11 | 4 | 17.46 | Mist | mist | 1.54 |
get.weather()
Requirements:
get.weather(apiKey, latitude, longitude, date)
See use case examples below.
devtools::install_github("chloeanalyst/openweatherr")
library(openweatherr)
Example One:
library(openweatherr)
apikey <- "222e546c9302a140b65a4aa0ab9566a2"
date <- list("2021-09-11", "2021-09-10","2021-09-09")
lat <- 53.480759
lon <- -2.242631
test <- get.weather(apikey,lat,lon,date)
Example Two:
apikey <- "222e546c9302a140b65a4aa0ab9566a2"
date <- "2021-09-11"
lat <- 53.480759
lon <- -2.242631
test <- get.weather(apikey,lat,lon,date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.