R: Access to Weather Forecasts with the Use of Dark Sky API.
Dark Sky API for weather forecast
R Documentation
Access to Weather Forecasts with the Use of Dark Sky API.
Description
Access to hourly and daily weather forecasts with the use of Dark Sky API.
Usage
getWeatherForecast(apiKey, lat = NA, lon = NA, city = NA, raw=FALSE)
Arguments
apiKey
You need to have Dark Sky apiKey in order to access weather forecasts.
See here: https://developer.forecast.io/ hor more details.
lat
The latitude coordinate for which prediction has to be made.
lon
The longitude coordinate for which prediction has to be made.
city
Instead of lat and lon you may specify name of the city for which prediction has to be made.
raw
If TRUE then no parsing is done. The function getWeatherForecast()
just download an forecast and returns it as a list.
Value
The function getWeatherForecast() returns list of three datasets.
now and by.hour datasets contains predictions. For each timepoint following information are collected: