| weather_now | R Documentation | 
weather_now() calls the Open-Meteo weather API for the most recently
recorded weather conditions a given location. Location is provided either as
string or c(latitude,longitude).
weather_now(location, response_units = NULL, timezone = "auto")
location | 
 Required. The location for which data will be retrieved.
Supplied as either a   | 
response_units | 
 Supply to convert temperature, windspeed, or
precipitation units. This defaults to:   | 
timezone | 
 specify timezone for time data as a string, i.e.
"australia/sydney" (defaults to "auto", the timezone local to the specified
  | 
Current weather conditions: temperature, windspeed, wind direction and weathercode.
# current weather in Montreal
weather_now("Montreal")
# current weather at the North Pole in Imperial units
weather_now(c(90, 0),
  response_units = list(
    temperature_unit = "fahrenheit",
    windspeed_unit = "mph"
  )
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.