View source: R/get_current_weather.R
| get_current_weather | R Documentation | 
Get current weather observations of a BOM station
get_current_weather(
  station_name,
  strict = FALSE,
  latlon = NULL,
  emit_latlon_msg = TRUE
)
station_name | 
 The name of the weather station. Fuzzy string matching
via   | 
strict | 
 (logical) If   | 
latlon | 
 A length-2 numeric vector giving the decimal degree
latitude and longitude (in that order), e.g.,   | 
emit_latlon_msg | 
 Logical. If   | 
Station names are not consistently named within the Bureau, so
the response may contain a different full_name to the one
matched, even if strict = TRUE. For example, 
get_current_weather("CASTLEMAINE PRISON")[["full_name"]][1] 
is Castlemaine, not Castlemaine Prison.
Note that the column local_date_time_full is set to a
POSIXct object in the local time of the user.
For more details see “Appendix 1 - Output from get_current_weather()”
in the bomrang vignette 
vignette("bomrang", package = "bomrang")
for a complete list of fields and units.
A bomrang_tbl object (extension of a
data.frame)  of requested BOM station's current and prior
72hr data. For full details of fields and units returned, see Appendix 1
in the bomrang vignette, use 
vignette("bomrang", package = "bomrang") to view.
Hugh Parsonage, hugh.parsonage@gmail.com
Weather data observations are retrieved from: Australian Bureau of Meteorology (BOM) Weather Data Services, Observations - individual stations: http://www.bom.gov.au/catalogue/data-feeds.shtml
Station location and other metadata are sourced from the Australian Bureau of Meteorology (BOM) webpage, Bureau of Meteorology Site Numbers: http://www.bom.gov.au/climate/cdo/about/site-num.shtml
get_historical_weather
  # warning
  Melbourne_weather <- get_current_weather("Melbourne")
  # no warning
  Melbourne_weather <- get_current_weather("Melbourne (Olympic Park)")
  # Get weather by latitude and longitude:
  get_current_weather(latlon = c(-34, 151))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.