Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

http://api.litefarm.org/

Report a collection of sensor readingsImage Removed

/farm/{farm_id}/sensor_readings

Code Block
languagejson
// 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
    ]
  }
]

Image Added

https://lucid.app/lucidchart/57b61ad1-0fa5-4fb4-bdb8-e753c2cd549f/edit?viewport_loc=-2090%2C-521%2C4992%2C2514%2C0_0&invitationId=inv_b24cabbe-67d9-457d-853e-30e351438487#