Returns details of the sensor requested
| Param name | Description |
|---|---|
|
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
Request - get details of the specified sensor (sensor_key specified as a part of the url)
curl -X GET -H "Content-Type:application/json" -H "X-Auth-Token:WtUFnj8pvSxVnH9e_xkq7A" https://api.datonis.io/api/v2/sensors/t42b258f9daef7ee64146651ef1dffc1b441df4t
Response (returns details of the sensor requested)
{
"sensor": {
"bi_directional": false,
"coordinates": [
"18.5203",
"73.8567"
],
"description": "",
"sensor_key": "t42b258f9daef7ee64146651ef1dffc1b441df4t",
"type": "Compressor",
"meta_data": {
"properties": {
"pressure": {
"type": "number"
},
"temperature": {
"type": "number"
}
},
"additionalProperties": false
},
"name": "CMP-222",
"state": "registered",
"tags_array": [
"Pune",
"Reciprocating"
],
"traits": {
},
"unit_of_measure": null,
"alive": false,
"tags": "Pune,Reciprocating",
"last_event": null,
"last_beat": 1428650668,
"created_at": 1396514265,
"updated_at": 1416569091
}
}