get_forecast {owmr}R Documentation

Get 3h forecast data.

Description

Get 3h forecast data.

Usage

get_forecast(city = NA, ...)

Arguments

city

city name or id

...

see owm api documentation, you can also skip parameter city and pass lat (latitude) and lon (longitude) or zip (zip code) instead

Value

list

Examples

## Not run: 
   result <- get_forecast("Kassel", units = "metric")
   names(result)
   get_forecast("London", cnt = 10)
   get_forecast(lat = -22.90278, lon = -22.90278, cnt = 3, units = "metric")

## End(Not run)

[Package owmr version 0.8.2 Index]