scheduleWeatherForecastDownload: Schedule Weather Forecast Download

Usage Arguments

Usage

1
2
3
4
5
6
7
8
scheduleWeatherForecastDownload(taskname, frequency = c("MINUTE", "DAILY",
  "WEEKLY", "ONCE"), starttime = "09:00", weekdays = c("MON", "TUE", "WED",
  "THU", "FRI", "SAT", "SUN"), minutes_step = 1, address,
  api_key = "a98e65d6eb8f07eb", max_requests = 500,
  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 = "\\"))

Arguments

taskname

Name of the task for the Windows Task Scheduler

frequency

One of c("MINUTE", "DAILY", "WEEKLY","ONCE")

starttime

Character in the format "

\item

weekdaysOne of weekdays = c("MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"), if weekly scheduling is required

\item

minutes_stepNumeric value indicating the frequency of the task in minutes (only if frequency == "MINUTE")

\item

addressCharacter 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"

\item

api_keyWeather Underground API key as character

\item

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

\item

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

\item

proxy_urlOptional character argument for the proxy URL

\item

proxy_portOptional numeric argument for the proxy port

\item

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

\item

proxy_usernameOptional character argument containing the username

Function scheduling an automatic retreival of weather forecast for a list of addresses, utilizing the Weather Underground API getWeatherForecast, https://www.wunderground.com/weather/api/d/docs


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