Endpoint: /node/history/
Methode: GET
Parameters:
| Name | Type | Description | |
|---|---|---|---|
| id | optional | string | specific node id, empty = all |
| limit | optional | integer | number of data, default = all today histories |
with curl
curl "smartfarm.pascal-id.test/node/history/?id=735Xaw2"
Example result:
{
"code" : 0,
"count" : 12,
"data" : [
{
"slug" : "735Xaw2",
"date" : "2019-10-01 16:49:31",
"state" : "",
"value" : "5"
},
.
.
.
{
"slug" : "735Xaw2",
"date" : "2019-10-01 16:35:18",
"state" : "2",
"value" : "4"
},
{
"slug" : "735Xaw2",
"date" : "2019-10-01 16:35:18",
"state" : "1",
"value" : "4"
}
]
}