getWeatherForecast: Download weather forecast

Description Usage Arguments See Also

Description

Function for getting a weather forecast from an open weather API. Powered by Weather Underground (wunderground.com).

Usage

1
2
3
4
5
6
getWeatherForecast(address, api_key = "a98e65d6eb8f07eb",
  max_requests = 500, export_query = FALSE,
  destination_path = file.path(Sys.getenv("USERPROFILE"), "Desktop", fsep =
  "\\"), proxy_url = "proxy.whu.edu", proxy_port = 3128,
  proxy_password = NULL, proxy_username = paste(Sys.getenv("USERDOMAIN"),
  Sys.getenv("USERNAME"), sep = "\\"), verbose = FALSE, ...)

Arguments

address

Character value or vector of character strings (for query of multiple locations) containing the address of the location for which the data should be retreived in the format "street name, street number, ZIP code, city, country"

api_key

Weather Underground API key as character

max_requests

Numeric value indicating the maximum number of daily requests (in free version of the WU API == 500)

export_query

Logical value indicating if the downloaded data should be exported to a .csv file

destination_path

Destination path of the export .csv-file (default is set to desktop)

proxy_url

Optional character argument for the proxy URL

proxy_port

Optional numeric argument for the proxy port

proxy_password

Optional character argument for the password (if not supplied, no proxy settings are set)

proxy_username

Optional character argument containing the username

verbose

Optional parameter triggeringa console notification of the current query (if set to TRUE)

...

List of optional parameters to underlying functions

See Also

https://www.wunderground.com/weather/api/d/docs


dsmirnov88/GermanWeatherData documentation built on May 15, 2019, 4:22 p.m.