Return the common infomations of the device.
Resource URL
https://api.seneye.com/v1/devices/:id
Parameters
:id required
The ID of the device for which to return results for.
values Integer
IncludeState optional
Extend the result set with the current state of the device
values [0,1]Example Request
| GET |
|
| Get device information in XML format, usign Http Header "Accept: application/xml" | |
<?xml version="1.0"?>
<response>
<id>3442</id>
<description>Home Device</description>
<type>1</type>
<time_diff>60</time_diff>
</response>
| |
| GET |
|
| Get device information in JSON format with extend status, usign Http Header "Accept: application/json" | |
{
"id":"3442",
"description":"Home Device",
"type":"1",
"time_diff":"60",
"status":{
"disconnected":"1",
"slide_serial":"z35wj896rh1",
"slide_expires":"1498057268",
"out_of_water":"0",
"wrong_slide":1,
"last_experiment":"1383066000"
},
"exps":{
"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":[
]
}
}
} | |