melb_weather {rwalkr} | R Documentation |
API to access Melbourne microclimate sensor data
Description
API to access Melbourne microclimate sensor data
Usage
melb_weather(
from = to - 6L,
to = Sys.Date(),
site = NULL,
sensor_type = NULL,
app_token = NULL
)
Arguments
from |
Starting date. Earliest measurement is 2019-11-15 |
to |
Ending date. |
site |
The site identifier. By default will pull in all locations that have weather sensors |
sensor_type |
The type of microclimate measurement to extract see |
app_token |
Characters giving the application token. A limited number of
requests can be made without an app token ( |
Details
It provides the API using Socrata, where microclimate measurements are updated on a dailly basis. For data documentation, including a data dictionary see the Melbourne Open Data Portal. Please refer to Melbourne Open Data Portal for more details about the dataset and its policy.
Value
A tibble including these variables as follows:
-
site
: Site identifier, this is the location of the weather sensor -
date_time
: Date time when the measurement was recorded -
date
: Date associated withdate_time
-
sensor_type
: The type of microclimate sensor reading -
units
: The units thatvalue
is in -
value
: The value of the reading
See Also
melb_walk, pull_weather_sensors, pull_weather_types
Examples
## Not run:
# Retrieve the last weeks data
melb_weather()
# Retrieve the last week but for a single location (Pelham St, Carlton)
melb_weather(site = "arc1047")
# Retrieve the last week but only ambient air temperature
melb_weather(sensor_type = "TPH.TEMP")
## End(Not run)