Description Usage Arguments Details Value Examples
Returns historical or forecasted temperature (F), precipitation (T/F), and wind speed (mph). Only available for United States locations. Forecast limited to next seven days.
1 | get_weather(.dates, lat, long)
|
.dates |
a vector of dates |
lat |
a double representing latitude in decimal format |
long |
a double representing longitude in decimal format |
Temperature is the max daily temperature, precipitation is TRUE if historical is greater than 0.1 inches or forecast probability is greater than 0.35, and wind speed is the fastest 2-minute wind speed.
a tibble of weather data with nrows == length(.dates)
1 2 3 4 5 6 7 8 9 | ## Not run:
set_api_key_noaa('<key>')
set_api_key_openweather('<key>')
dates <- Sys.Date() + -10:5
lat <- 40.7812
long <- -73.9665
get_weather(dates, lat, long)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.