getForecastAEMET: Get 48 h forecast from AEMET (http://www.aemet.es/).

Description Usage Arguments Details Examples

View source: R/aemet_API.R

Description

The forecast are retrived from Specific Forecasts by Municipality link.

Usage

1
getForecastAEMET(codigo, KEY)

Arguments

codigo

character with Municipality Code. See link.

KEY

character API key. Users must register to obtain it. See link.

Details

getForecastAEMET returns a dataframe with date, temperature (Celsius scale), relative humidity (RH)(%), rainfall (mm) and wind (m/s).

Examples

1
2
3
4
5
## Not run: 
key.aemet <- "AEMET-API-KEY"
getForecastAEMET(codigo = "03140", KEY = key.aemet)  # Villena, Alicante, Spain

## End(Not run)

VicenteYago/meteoForecast documentation built on Dec. 18, 2021, 6:16 p.m.