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 = "\\"))
|
taskname |
Name of the task for the Windows Task Scheduler |
frequency |
One of c("MINUTE", "DAILY", "WEEKLY","ONCE") |
starttime |
Character in the format " \itemweekdaysOne of weekdays = c("MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"), if weekly scheduling is required \itemminutes_stepNumeric value indicating the frequency of the task in minutes (only if frequency == "MINUTE") \itemaddressCharacter 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" \itemapi_keyWeather Underground API key as character \itemmax_requestsNumeric value indicating the maximum number of daily requests (in free version of the WU API == 500) \itemdestination_pathDestination path of the export .csv-file (default is set to desktop) \itemproxy_urlOptional character argument for the proxy URL \itemproxy_portOptional numeric argument for the proxy port \itemproxy_passwordOptional character argument for the password (if not supplied, no proxy settings are set) \itemproxy_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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.