Returns the list of customer devices. It might include the state of each devices.
Resource URL
https://api.seneye.com/v1/devices
Parameters
IncludeState optional
Extend the result set with the current state of the device
values [0,1]Example Request
GET |
|
Get devices list of demo account in XML format, usign Http Header "Accept: application/xml" | |
<?xml version="1.0"?> <response> <device> <id>3442</id> <description>Home Device</description> <type>1</type> <time_diff>60</time_diff> </device> <device> <id>11973</id> <description>Pond Device</description> <type>2</type> <time_diff>60</time_diff> </device> <device> <id>11974</id> <description>Reef Device</description> <type>3</type> <time_diff>60</time_diff> </device> </response> |
GET |
|
Get devices list of demo account 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":[ ] } } }, { "id":"11973", "description":"Pond Device", "type":"2", "time_diff":"60", "status":{ "disconnected":"1", "slide_serial":"s62ws792fa3", "slide_expires":"1497192670", "out_of_water":"0", "wrong_slide":1, "last_experiment":"1383066000" }, "exps":{ "temperature":{ "trend":"-1", "critical_in":"-1", "avg":"14.300", "status":"-1", "curr":"1.800", "advises":[ ] }, "ph":{ "trend":"-1", "critical_in":"-1", "avg":"8.11", "status":"0", "curr":"8.08", "advises":[ ] }, "nh3":{ "trend":"0", "critical_in":"-1", "avg":"0.001", "status":"0", "curr":"0.001", "advises":[ ] }, "o2":{ "trend":"0", "critical_in":"-1", "avg":"10.4", "status":"0", "curr":"13.6", "advises":[ ] }, "light":{ "max_value":"278.1", "status":"0", "curr":"7.91082", "advises":[ ] } } }, { "id":"11974", "description":"Reef Device", "type":"3", "time_diff":"60", "status":{ "disconnected":"1", "out_of_water":"0", "wrong_slide":1, "last_experiment":"1383066000" }, "exps":{ "temperature":{ "trend":"-1", "critical_in":"-1", "avg":"25.100", "status":"0", "curr":"25.000", "advises":[ ] }, "ph":{ "trend":"-1", "critical_in":"-1", "avg":"8.11", "status":"0", "curr":"8.12", "advises":[ ] }, "nh3":{ "trend":"0", "critical_in":"-1", "avg":"0.001", "status":"0", "curr":"0.001", "advises":[ ] }, "nh4":{ "trend":"-1", "critical_in":"-1", "avg":"15.00", "status":"0", "curr":"14.49", "advises":[ ] }, "o2":{ "trend":"-1", "critical_in":"-1", "avg":"8.2", "status":"0", "curr":"8.2", "advises":[ ] }, "lux":{ "status":null, "curr":"130", "advises":[ ] }, "par":{ "curr":"0", "advises":[ ] }, "kelvin":{ "curr":"0", "advises":[ ] } } } ] |