Versions Compared

Key

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

General description


The data received through the API is associated with a station or device. This device is identified by a unique code.
To send variable value data, a POST request will be made with a JSON payload as specified below. In the case of sending images, a POST request will be made in "multipart/form-data" format as specified below.
All requests to send data will provide an API key in the HTTP header "X-API-Key", which identifies who is sending the data, and must be signed using HMAC-SHA256 provided in the HTTP header "X-Signature " as described below, using an API secret.

Send variable-value data


Frame format:
{
"HIST": {
"DATA": {
"VAR_1": 0.34,
"VAR_2": "text"
},
"VERSION": "10.0.0",
"UTC": 1518778157,
"IMEI": "APP-FARM1-CROP1"
}
}
Frames are JSON objects that represent data from a specific station at a specific date and time.

...