awapi (AccuWeather.com API) is an R package providing convenient access to the AccuWeather.com API. You can use it to get historical weather conditions, hourly and daily forecasts for any location.
The AccuWeather API offers a free limited trial package (limited to 50 API calls a day).
There are a variety of methods for installing packages directly from github. You may want to research these and find the most appropriate for you.
# install devtools libraries from cran
install.packages("devtools")
# install awapi package
devtools::install_github("tayoso2/awapi")
Alternatively, you could clone the entire repo and build manually.
library(awapi)
You will need an API key to use AccuWeather API. You can register for an API key at https://developer.accuweather.com.
R must be installed and Rscript
should be in the search path.
testthat::test_dir('test')
R, weather, API, AccuWeather, elevation, postcode
Copyright (c) 2020 Arcadis Nederland B.V.
Without prior written consent of Arcadis Nederland B.V., this code may not be published or duplicated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.