getDataZentra: Get data from the API of zentracloud.com

Description Usage Arguments Value Examples

View source: R/getDataZentra.R

Description

Get data from the API of zentracloud.com

Usage

1
2
3
4
5
6
7
getDataZentra(
  token,
  var = "Water Content",
  device_sn = "z6-10293",
  port,
  time_span = c(now(), now() - days(5))
)

Arguments

token

token get from zentracloud API

var

which variable you want to get, they could be "Air Temperature","Atmospheric Pressure","Battery Percent", "Battery Voltage","Gust Speed","Lightning Activity", "Lightning Distance","Logger Temperature","Max Precip Rate" "Precipitation","RH Sensor Temp","Reference Pressure", "Saturation Extract EC","Soil Temperature","Solar Radiation", "VPD", "Vapor Pressure", "Water Content", "Wind Direction","Wind Speed","X-axis Level" "Y-axis Level"

device_sn

the name of the z6 datalogger

port

the port number of sensor

time_span

vector of two having time range for which the data is required

Value

tibble

Examples

1
2
3
# Get data of VPD for the last five days
# token <- my_token
# VPD_data <- getDataZentra(token,var = "VPD",port =1)

frzambra/zentraAPI documentation built on Dec. 20, 2021, 9:40 a.m.