As a Farmera developer, synchronize temperature data reliably from an external vendor, myfarm.io, with Farmera. What kind of concepts / entities do you need to implement in our service? How will you do the interaction with myfarm.io? If you need more information about the API, please ask.
curl 'https://api.myfarm.io/devices/123/temperature?start=2019-01-06T00%3A00%3A00Z&end=2019-01-09T00%3A00%3A00Z&groupBy=FIFTEEN_MINUTES' -i -u 'user:secret' -X GET
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"start": "2019-01-06T00:00:00",
"end": "2019-01-06T00:40:00",
"groupBy": "FIFTEEN_MINUTES",
"data": [
{
"time": "2019-01-06T00:15",
"avg": 70,
"min": 68,
"max": 71.5,
},
{
"time": "2019-01-06T00:30",
"avg": 69,
"min": 67,
"max": 70,
}
]
}