Description Usage Arguments Details Value Examples
View source: R/climacell_temperature.R
This function will make a call to the Climacell API and retrieve temperature related variables.
1 2 3 4 5 6 7 8  | climacell_temperature(
  api_key,
  lat,
  long,
  timestep,
  start_time = NULL,
  end_time = NULL
)
 | 
api_key | 
 character string representing the private API key. Provided by user or loaded automatically from environment variable (environment variable must be called "CLIMACELL_API").  | 
lat | 
 a numeric value (or a string that can be coerced to numeric) representing the latitude of the location.  | 
long | 
 a numeric value (or a string that can be coerced to numeric) representing the longitude of the location.  | 
timestep | 
 a 'step' value for the time. Choose one of the following valid values: c('1d', '1h', '30m','15m','5m','1m','current').  | 
start_time | 
 the start time of the query. This input must be a character string that can be parsed into a data/time or a date/time value. If the input does not contain a timezone, the value will be assumed to be in UTC. It is recommended that the   | 
end_time | 
 the end time of the query. This input must be a character string that can be parsed into a data/time or a date/time value. If the input does not contain a timezone, the value will be assumed to be in UTC. OPTIONAL if timestep is 'current' or if the user desires to get the maximum results possible (depends on the timestep chosen).  | 
climacell_temperature returns a tibble that consists of temperature related variables (returned values are in metric units) using the Climacell API. These variables consist of temperature, a "feels like" temperature, dewpoint, and humidity.
a tibble
1 2 3 4 5 6 7 8  | ## Not run: 
climacell_temperature(
  api_key = Sys.getenv('CLIMACELL_API'),
  lat = 0,
  long = 0,
  timestep = 'current')
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.