Description Usage Arguments Details Note References
This is a WIP. The data returned is in a sub-optimal format that requires conversion of some data frame column values to numeric to use.
1 2 3 | mywx_forecast(location_id, start_date = Sys.Date(), end_date = Sys.Date(),
dataset_id = "FORECAST", data_category_id = "GENERAL",
mywx_api_token = Sys.getenv("MYWX_TOKEN"))
|
location_id |
valid location id retrieved from one of the location helpers |
start_date, end_date |
either character vectors in ISO 8601 format or |
dataset_id |
the current only valid default, |
data_category_id |
the current only valid default, |
mywx_api_token |
MET API token |
You need a valid token either passed in to mywx_api_token
or stored in the MYWX_TOKEN
environment variable, preferably in ~/.Renviron
.
Maximum burst requests is 10 per minute and maximum sustained requests is 1,000 per day.
https://api.met.gov.my/dashboard/docs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.