get_openweather_historical: Retrieve last 5 days weather data from the OpenWeather API

Description Usage Arguments Value References Examples

View source: R/get_weather.R

Description

Returns the last 5 days temperature (Fahrenheit), precipitation (T/F), and wind speed (mph). Must set API key via set_api_key_openweather() prior to use. Request key here get key here https://openweathermap.org/full-price#current.

Usage

1

Arguments

lat

a double representing latitude

long

a double representing longitude

Value

a tibble of weather data

References

https://openweathermap.org/api/one-call-api

Examples

1
2
3
4
5
6
7
## Not run: 
set_api_key_openweather('<key>')
lat <- 40.7812
long <- -73.9665
get_openweather_historical(lat, long)

## End(Not run)

joemarlo/simpleweather documentation built on Dec. 21, 2021, 1:19 a.m.