owmr (version 0.8.2)

get_current: Get current weather data for given city.

Description

Get current weather data for given city.

Usage

get_current(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

Run this code
# NOT RUN {
   get_current("London", units = "metric")
   get_current(2643741, lang = "DE")
   get_current(lon = -0.09184, lat = 51.51279)
   get_current(zip = "94040,US")
# }

Run the code above in your browser using DataLab