MultiGrow: Readings
The MultiGrow readings resource lets you access the data from your MultiGrow device.
Resources
GET /multigrow/<device-uuid>/comps/<compartment-number>
GET /multigrow/<device-uuid>/comps/<compartment-number>/history/<from-timestamp>/<to-timestamp>
Get compartment current readings
GET /multigrow/<device-uuid>/comps/<compartment-number>
Get the current readings for the given compartment. Compartment first ID is 0.
Request Headers
Content-Type: application/json
Authorization: <token>
Example Request
curl https://api.autogrow.com/v1/multigrow/<your-device-uuid>/comps/0
HTTP/1.1 200 OK
Response Object
{
"metadata": {
"index": "0",
"manager": "comp",
"query_ms": 241,
"uuid": "string"
},
"readings": {
"accum_par": 0,
"accum_rad": 0,
"air_temp": 20.95,
"cool_target": 20,
"dew_point": 16.55,
"hd": 3.64,
"heat_target": 18,
"pressure": 993.0600000000001,
"raining": 0,
"rh": 76,
"rh_target": 70,
"solar_par": 0,
"solar_rad": 0,
"vpd": 0.593
}
}
Response Codes
Code | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
405 | Method Not Allowed |
500 | Internal Server Error |
Get compartment readings history
GET /multigrow/<device-uuid>/comps/<compartment-number>/history/<from-timestamp>/<to-timestamp>
Get the readings history for the given compartment. Compartment first ID is 0. History period to and from timestamp is unix epoch format.
Request Headers
Content-Type: application/json
Authorization: <token>
Example Request
curl https://api.autogrow.com/v1/multigrow/<your-device-uuid>/comps/0/history/1514764800/1514800800
HTTP/1.1 200 OK
Response Object
{
"metadata": {
"index": "0",
"manager": "comp",
"query_ms": 638,
"uuid": "string"
},
"readings": [
{
"accum_par": 0.014554545454545454,
"accum_rad": 0,
"air_temp": 21.218256880733943,
"cool_target": 20,
"dew_point": 15.486761904761906,
"hd": 4.631773195876288,
"heat_target": 18,
"pressure": 1004.5914851485151,
"raining": 0,
"rh": 69.92105263157895,
"rh_target": 70,
"solar_par": 0.32786885245901637,
"solar_rad": 0,
"time": "2018-01-01T00:00:00Z",
"vpd": 0.7557157894736841
},
{
"accum_par": 0.016866666666666665,
"accum_rad": 0,
"air_temp": 21.36087719298245,
"cool_target": 20,
"dew_point": 15.716442307692311,
"hd": 4.586094736842105,
"heat_target": 18,
"pressure": 1004.5307547169815,
"raining": 0,
"rh": 70.46575342465754,
"rh_target": 70,
"solar_par": 0.6060606060606061,
"solar_rad": 0,
"time": "2018-01-01T01:00:00Z",
"vpd": 0.7479247311827957
},
...
]
}
Response Codes
Code | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
405 | Method Not Allowed |
500 | Internal Server Error |