Para obtener todos los últimos values de un Device, haz una petición GET a la siguiente URL:
HTTP Method | URL |
---|
GET | https://api.netux.com/api/v2.0/devices/<device_key>/_/values/last |
Parameter | Type | Description |
---|
device_key | String | The id or label of the Device, label should use the prefix ~ |
Parameter | Type | Use | Description |
---|
token | String | Authentication | Authentication Token can optionally be sent as a query parameter. |
only_value | Boolean | Filter | Filter by value |
$ curl -X GET 'https://api.netux.com/api/v2.0/devices/<device_key>/_/values/last' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
Devuelve un objeto que contiene todos los últimos values de un Device.
{
"humidity": {
"value": 59.0,
"timestamp": 1649867634000,
"context": {},
"created_at": 1649867635757
},
"clouds": {
"value": 75.0,
"timestamp": 1649867634000,
"context": {},
"created_at": 1649867635757
},
"pressure": {
"value": 1027.0,
"timestamp": 1649867634000,
"context": {},
"created_at": 1649867635757
},
"wind_speed": {
"value": 3.6,
"timestamp": 1649867634000,
"context": {},
"created_at": 1649867635757
}
}
{
"code": 400001,
"message": "Validation Error.",
"detail": {
....
}
}
{
"code": 401002,
"message": "Incorrect authentication credentials."
}