Green Brain API

Latest Readings

Route: /sensor-groups/{sensorGroupId}/latest
Description: Get the latest readings of all sensors on a sensor group
Requires Auth: Yes
Method: GET
Example Response:
{
  "system": {
    "id": 19,
    "name": "Green Brain Demo",
    "timezone": "Australia/Adelaide"
  },
  "station": {
    "id": 106,
    "name": "Moisture Content (%)",
    "timezone": null
  },
  "sensorGroup": {
    "id": 199,
    "name": "Shiraz East"
  },
  "sensorTypes": {
    "soilMoistureContent": {
      "id": 2,
      "name": "Soil Moisture Content",
      "sensors": [
        {
          "id": 732,
          "name": "30cm",
          "unit": "%",
          "value": 46.1,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 733,
          "name": "40cm",
          "unit": "%",
          "value": 47.59,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 734,
          "name": "50cm",
          "unit": "%",
          "value": 59.21,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 735,
          "name": "60cm",
          "unit": "%",
          "value": 67.71,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 737,
          "name": "80cm",
          "unit": "%",
          "value": 73.81,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 731,
          "name": "20cm",
          "unit": "%",
          "value": 35.6,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 730,
          "name": "10cm",
          "unit": "%",
          "value": 27.37,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 736,
          "name": "70cm",
          "unit": "%",
          "value": 64,
          "time": "2018-09-26T13:30:00.000"
        }
      ]
    },
    "soilTemperature": {
      "id": 4,
      "name": "Soil Temperature",
      "sensors": [
        {
          "id": 738,
          "name": "10cm",
          "unit": "ºC",
          "value": 21.78,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 739,
          "name": "20cm",
          "unit": "ºC",
          "value": 14.58,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 740,
          "name": "30cm",
          "unit": "ºC",
          "value": 12.2,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 741,
          "name": "40cm",
          "unit": "ºC",
          "value": 11.93,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 742,
          "name": "50cm",
          "unit": "ºC",
          "value": 11.95,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 743,
          "name": "60cm",
          "unit": "ºC",
          "value": 12.52,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 744,
          "name": "70cm",
          "unit": "ºC",
          "value": 12.81,
          "time": "2018-09-26T13:30:00.000"
        },
        {
          "id": 745,
          "name": "80cm",
          "unit": "ºC",
          "value": 12.93,
          "time": "2018-09-26T13:30:00.000"
        }
      ]
    }
  }
}