Green Brain API

Bootstrap

Route: /bootstrap
Description: Bootstrap your account to get information on your systems
Requires Auth: Yes
Method: GET
Example Response:
{
  "systems": [
    {
      "id": 19,
      "ownerId": 16,
      "systemTypeId": 1,
      "name": "Green Brain Demo",
      "status": 1,
      "timezone": "Australia/Adelaide",
      "activeStart": "2016-02-28T06:49:48.000Z",
      "activeEnd": null,
      "rootSystemId": null,
      "createdAt": "2016-02-28T06:49:48.000Z",
      "updatedAt": "2016-05-31T06:05:17.000Z",
      "isUtc": false,
      "owner": false,
      "readOnly": false,
      "stations": [
        {
          "id": 104,
          "systemId": 19,
          "stationTypeId": 1,
          "name": "Hub",
          "latitude": "-34.478136",
          "longitude": "139.012846",
          "createdAt": "2016-02-28T06:49:50.000Z",
          "updatedAt": "2016-02-28T06:49:50.000Z",
          "timezone": null,
          "activeUntil": null,
          "elevation": null,
          "isUtc": null,
          "owner": true,
          "readOnly": false,
          "ownerSystemId": null,
          "sensorGroups": [
            {
              "id": 195,
              "stationId": 104,
              "sensorGroupTypeId": 6,
              "name": "Battery",
              "position": 10000,
              "createdAt": "2016-02-20T02:34:26.000Z",
              "updatedAt": "2016-02-20T02:34:26.000Z",
              "legacyId": null,
              "sensorGroupModelId": null,
              "activeUntil": null,
              "sensorTypes": [
                {
                  "id": 1,
                  "name": "Voltage",
                  "unit": "V"
                }
              ],
              "faults": {
                "faults": [

                ],
                "maxLevel": 0,
                "own": [

                ],
                "ownMaxLevel": 0,
                "children": [

                ],
                "childrenMaxLevel": 0
              }
            }
          ],
          "faults": {
            "faults": [

            ],
            "maxLevel": 0,
            "own": [

            ],
            "ownMaxLevel": 0,
            "children": [

            ],
            "childrenMaxLevel": 0
          }
        },
        {
          "id": 106,
          "systemId": 19,
          "stationTypeId": 3,
          "name": "Moisture Content (%)",
          "latitude": "-34.478225",
          "longitude": "139.013136",
          "createdAt": "2016-02-28T06:49:50.000Z",
          "updatedAt": "2018-07-12T00:03:37.000Z",
          "timezone": null,
          "activeUntil": null,
          "elevation": null,
          "isUtc": null,
          "owner": true,
          "readOnly": false,
          "ownerSystemId": null,
          "sensorGroups": [
            {
              "id": 199,
              "stationId": 106,
              "sensorGroupTypeId": 2,
              "name": "Shiraz East",
              "position": 100,
              "createdAt": "2016-02-20T02:34:26.000Z",
              "updatedAt": "2018-07-12T00:03:37.000Z",
              "legacyId": 106,
              "sensorGroupModelId": null,
              "activeUntil": null,
              "sensorTypes": [
                {
                  "id": 2,
                  "name": "Soil Moisture Content",
                  "unit": "%"
                },
                {
                  "id": 4,
                  "name": "Soil Temperature",
                  "unit": "ºC"
                }
              ],
              "faults": {
                "faults": [

                ],
                "maxLevel": 0,
                "own": [

                ],
                "ownMaxLevel": 0,
                "children": [

                ],
                "childrenMaxLevel": 0
              }
            },
            {
              "id": 198,
              "stationId": 106,
              "sensorGroupTypeId": 6,
              "name": "Battery",
              "position": 10000,
              "createdAt": "2016-02-20T02:34:26.000Z",
              "updatedAt": "2016-02-20T02:34:26.000Z",
              "legacyId": null,
              "sensorGroupModelId": null,
              "activeUntil": null,
              "sensorTypes": [
                {
                  "id": 1,
                  "name": "Voltage",
                  "unit": "V"
                }
              ],
              "faults": {
                "faults": [

                ],
                "maxLevel": 0,
                "own": [

                ],
                "ownMaxLevel": 0,
                "children": [

                ],
                "childrenMaxLevel": 0
              }
            }
          ],
          "faults": {
            "faults": [

            ],
            "maxLevel": 0,
            "own": [

            ],
            "ownMaxLevel": 0,
            "children": [

            ],
            "childrenMaxLevel": 0
          }
        },
        {
          "id": 105,
          "systemId": 19,
          "stationTypeId": 2,
          "name": "Soil Moisture Tension (kPa)",
          "latitude": "-34.478194",
          "longitude": "139.013007",
          "createdAt": "2016-02-28T06:49:50.000Z",
          "updatedAt": "2017-07-12T06:58:53.000Z",
          "timezone": null,
          "activeUntil": null,
          "elevation": null,
          "isUtc": null,
          "owner": true,
          "readOnly": false,
          "ownerSystemId": null,
          "sensorGroups": [
            {
              "id": 197,
              "stationId": 105,
              "sensorGroupTypeId": 1,
              "name": "Shiraz West",
              "position": 100,
              "createdAt": "2016-02-20T02:34:26.000Z",
              "updatedAt": "2017-07-12T06:58:53.000Z",
              "legacyId": null,
              "sensorGroupModelId": null,
              "activeUntil": null,
              "sensorTypes": [
                {
                  "id": 5,
                  "name": "Soil Moisture Tension",
                  "unit": "kPa"
                }
              ],
              "faults": {
                "faults": [

                ],
                "maxLevel": 0,
                "own": [

                ],
                "ownMaxLevel": 0,
                "children": [

                ],
                "childrenMaxLevel": 0
              }
            },
            {
              "id": 196,
              "stationId": 105,
              "sensorGroupTypeId": 6,
              "name": "Battery",
              "position": 10000,
              "createdAt": "2016-02-20T02:34:26.000Z",
              "updatedAt": "2016-02-20T02:34:26.000Z",
              "legacyId": null,
              "sensorGroupModelId": null,
              "activeUntil": null,
              "sensorTypes": [
                {
                  "id": 1,
                  "name": "Voltage",
                  "unit": "V"
                }
              ],
              "faults": {
                "faults": [

                ],
                "maxLevel": 0,
                "own": [

                ],
                "ownMaxLevel": 0,
                "children": [

                ],
                "childrenMaxLevel": 0
              }
            }
          ],
          "faults": {
            "faults": [

            ],
            "maxLevel": 0,
            "own": [

            ],
            "ownMaxLevel": 0,
            "children": [

            ],
            "childrenMaxLevel": 0
          }
        },
        {
          "id": 785,
          "systemId": 19,
          "stationTypeId": 6,
          "name": "Rainfall + Air Temp, Humidity & Leaf Wetness",
          "latitude": "-34.478156",
          "longitude": "139.012814",
          "createdAt": "2016-02-28T06:49:52.000Z",
          "updatedAt": "2017-07-12T07:10:07.000Z",
          "timezone": null,
          "activeUntil": null,
          "elevation": null,
          "isUtc": null,
          "owner": true,
          "readOnly": false,
          "ownerSystemId": null,
          "sensorGroups": [
            {
              "id": 1485,
              "stationId": 785,
              "sensorGroupTypeId": 5,
              "name": "Rainfall",
              "position": 100,
              "createdAt": "2016-02-20T02:34:28.000Z",
              "updatedAt": "2017-07-12T07:10:07.000Z",
              "legacyId": 3,
              "sensorGroupModelId": null,
              "activeUntil": null,
              "sensorTypes": [
                {
                  "id": 6,
                  "name": "Rainfall",
                  "unit": "mm"
                }
              ],
              "faults": {
                "faults": [

                ],
                "maxLevel": 0,
                "own": [

                ],
                "ownMaxLevel": 0,
                "children": [

                ],
                "childrenMaxLevel": 0
              }
            },
            {
              "id": 2909,
              "stationId": 785,
              "sensorGroupTypeId": 16,
              "name": "Temperature, Humidity & Leaf Wetness",
              "position": 200,
              "createdAt": "2016-07-18T07:10:19.000Z",
              "updatedAt": "2017-07-12T07:10:07.000Z",
              "legacyId": null,
              "sensorGroupModelId": 22,
              "activeUntil": null,
              "sensorTypes": [
                {
                  "id": 10,
                  "name": "Air Temperature",
                  "unit": "ºC"
                },
                {
                  "id": 11,
                  "name": "Relative Humidity",
                  "unit": "%"
                },
                {
                  "id": 13,
                  "name": "Dew Point Temperature",
                  "unit": "ºC"
                },
                {
                  "id": 14,
                  "name": "Frost Point Temperature",
                  "unit": "ºC"
                },
                {
                  "id": 35,
                  "name": "Leaf Wetness",
                  "unit": "mV"
                },
                {
                  "id": 31,
                  "name": "VPD",
                  "unit": "kPa"
                }
              ],
              "faults": {
                "faults": [

                ],
                "maxLevel": 0,
                "own": [

                ],
                "ownMaxLevel": 0,
                "children": [

                ],
                "childrenMaxLevel": 0
              }
            },
            {
              "id": 1484,
              "stationId": 785,
              "sensorGroupTypeId": 6,
              "name": "Battery",
              "position": 10000,
              "createdAt": "2016-02-20T02:34:28.000Z",
              "updatedAt": "2016-02-20T02:34:28.000Z",
              "legacyId": null,
              "sensorGroupModelId": null,
              "activeUntil": null,
              "sensorTypes": [
                {
                  "id": 1,
                  "name": "Voltage",
                  "unit": "V"
                }
              ],
              "faults": {
                "faults": [

                ],
                "maxLevel": 0,
                "own": [

                ],
                "ownMaxLevel": 0,
                "children": [

                ],
                "childrenMaxLevel": 0
              }
            }
          ],
          "faults": {
            "faults": [

            ],
            "maxLevel": 0,
            "own": [

            ],
            "ownMaxLevel": 0,
            "children": [

            ],
            "childrenMaxLevel": 0
          }
        },
        {
          "id": 390,
          "systemId": 19,
          "stationTypeId": 5,
          "name": "Temp Profile",
          "latitude": "-34.475967",
          "longitude": "139.014031",
          "createdAt": "2016-02-28T06:49:51.000Z",
          "updatedAt": "2016-05-31T06:05:17.000Z",
          "timezone": null,
          "activeUntil": null,
          "elevation": null,
          "isUtc": null,
          "owner": true,
          "readOnly": false,
          "ownerSystemId": null,
          "sensorGroups": [
            {
              "id": 753,
              "stationId": 390,
              "sensorGroupTypeId": 3,
              "name": "Gypsum Block & Temperature",
              "position": 100,
              "createdAt": "2016-02-20T02:34:27.000Z",
              "updatedAt": "2016-02-20T02:34:27.000Z",
              "legacyId": null,
              "sensorGroupModelId": null,
              "activeUntil": null,
              "sensorTypes": [
                {
                  "id": 7,
                  "name": "Temperature",
                  "unit": "ºC"
                }
              ],
              "faults": {
                "faults": [

                ],
                "maxLevel": 0,
                "own": [

                ],
                "ownMaxLevel": 0,
                "children": [

                ],
                "childrenMaxLevel": 0
              }
            },
            {
              "id": 752,
              "stationId": 390,
              "sensorGroupTypeId": 6,
              "name": "Battery",
              "position": 10000,
              "createdAt": "2016-02-20T02:34:27.000Z",
              "updatedAt": "2016-02-20T02:34:27.000Z",
              "legacyId": null,
              "sensorGroupModelId": null,
              "activeUntil": null,
              "sensorTypes": [
                {
                  "id": 1,
                  "name": "Voltage",
                  "unit": "V"
                }
              ],
              "faults": {
                "faults": [

                ],
                "maxLevel": 0,
                "own": [

                ],
                "ownMaxLevel": 0,
                "children": [

                ],
                "childrenMaxLevel": 0
              }
            }
          ],
          "faults": {
            "faults": [

            ],
            "maxLevel": 0,
            "own": [

            ],
            "ownMaxLevel": 0,
            "children": [

            ],
            "childrenMaxLevel": 0
          }
        }
      ],
      "time": "2018-09-26T14:47:55+09:30",
      "faults": {
        "faults": [

        ],
        "maxLevel": 0,
        "own": [

        ],
        "ownMaxLevel": 0,
        "children": [

        ],
        "childrenMaxLevel": 0
      }
    }
  ]
}