Communication with Ensemble API
To Ensemble:
Register organization
Returned UUID should be stored. Maybe something like this?
Integration_id | Integration_name | farm_id | ESCI_id |
---|---|---|---|
| Ensemble |
|
|
|
|
|
|
Register callback address for an organization
Register a sensor to an organization
To LiteFarm:
Report a collection of sensor readings
/farm/{farm_id}/sensor_readings
// Example json that webhook will post to the url
[
{
"node_esid": "123",
"sensor_esid": "124",
"parameter_number": 1,
"unit": "ºC",
"time": [
"02-09-2022, 22:53:52",
"02-09-2022, 22:54:07"
],
"value": [
1,
2
],
"validated": [
false,
false
]
},
{
"node_esid": "123",
"sensor_esid": "124",
"parameter_number": 2,
"unit": "kPa",
"time": [
"02-09-2022, 22:54:23"
],
"value": [
3
],
"validated": [
false
]
}
]