Description Usage Arguments Details Note References Examples
Endpoint data relies on passing a locationid
. These functions can be uses to obtain
a lookup table of valid loations and ids.
1 2 3 4 5 6 7 | mywx_states(mywx_api_token = Sys.getenv("MYWX_TOKEN"))
mywx_districts(mywx_api_token = Sys.getenv("MYWX_TOKEN"))
mywx_towns(mywx_api_token = Sys.getenv("MYWX_TOKEN"))
mywx_touristdests(mywx_api_token = Sys.getenv("MYWX_TOKEN"))
|
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
1 2 3 4 5 6 7 | ## Not run:
mywx_states()
mywx_districts()
mywx_towns()
mywx_touristdests()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.