{\rtf1}

GET devices/:id/exps

Returns the state of the device.

Including the current value, avg and trend

Home Device
  • temperature
  • pH
  • nh3

Resource URL

https://api.seneye.com/v1/devices/:id/exps

Parameters

:id required

The ID of the device for which to return results for.

values Integer

Return Data

trend

The ID of the device for which to return results for.

values -1 Down, 0 Stable, 1 Up
trend

Hours to reach a critical state.

values Integer default -1 No Critical

Example Request

GET

https://api.seneye.com/v1/devices/3442/exps?user=***&pwd=***

{
 "temperature":{
  "trend":"-1",
  "critical_in":"-1",
  "avg":"20.700",
  "status":"1",
  "curr":"25.000",
  "advises":[

  ]
 },
 "ph":{
  "trend":"-1",
  "critical_in":"-1",
  "avg":"8.07",
  "status":"0",
  "curr":"8.12",
  "advises":[

  ]
 },
 "nh3":{
  "trend":"0",
  "critical_in":"-1",
  "avg":"0.008",
  "status":"0",
  "curr":"0.001",
  "advises":[

  ]
 },
 "light":{
  "max_value":"1065.7",
  "status":"0",
  "curr":"12.1986",
  "advises":[

  ]
 }
}