fc_wrappers: Read user information

fc_get_userR Documentation

Read user information

Description

Read user information

List of user devices.

Get station information

Get min and max date of device data availability

Getdata between specified time periods.

Usage

fc_get_user(...)

fc_get_user_stations(...)

fc_get_station(station_id = NULL, ...)

fc_get_data(station_id = NULL, ...)

fc_get_data_range(
  station_id = NULL,
  data_group = c("raw", "hourly", "daily", "monthly"),
  from = NULL,
  to = NULL,
  ...
)

Arguments

...

additional arguments passed to fc_request()

station_id

station id to query

data_group

how to group data

from

time in unix timestamps since UTC, e.g. via as.integer(as.POSIXct(Sys.time()))

to

time in unix timestamps since UTC as.integer(as.POSIXct(Sys.time()))

Value

a list with user information.

a list with user stations information.

a list with station details.

a list with station metadata.

a list with station data.

Examples

## Not run: 
  fc_get_user()

## End(Not run)
## Not run: 
stations <- fc_get_user_stations()
stations

## End(Not run)
## Not run: 
stations <- fc_get_user_stations()
fc_get_station(stations[[1]]$station_name)

## End(Not run)
## Not run: 
stations <- fc_get_user_stations()
fc_get_data(stations[[1]]$station_name)

## End(Not run)
## Not run: 
stations <- fc_get_user_stations()
fc_get_data_range(
  station_id = stations[[1]]$station_name,
  data_group = "raw",
  from = as.integer(as.POSIXct(Sys.time() - 60*60*24)),
  to =  as.integer(as.POSIXct(Sys.time())))

## End(Not run)

rfieldclimate documentation built on March 31, 2023, 5:33 p.m.