Bobbie

Get sensor data

Request URL:
1
POST /provider/fetch
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number" : "{Bobbie Serial Number}"
3
}
Copied!
Response:
1
{
2
"provider": {
3
"cold": 26.490346029707, //value of the cold pipe temperature sensor in celsius
4
"hot": 32.514830800359, //value of the hot pipe temperature sensor in celsius
5
"home": 27.252545430612, //value of the ambient temperature sensor in celsius
6
"energy": 0.10849291444, //electrical energy in kWh
7
"voltage": 232.76088205096, //value of measured voltage in V
8
"current": 12.254590367881, //value of electrical current in A
9
"relay_state": 1, //state of the relay (1 - on, 0 - off)
10
"load": true //indicator of load (boolean value)
11
},
12
"_links": {
13
"self": {
14
"href": "/v1/provider/fetch"
15
}
16
}
17
}
Copied!

Control relay state (turn Bobbie on/off)

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{Bobbie Serial Number}”,
3
"command" : "switch_on_off",
4
"state" : "on" //receives values “on”/“off”
5
}
Copied!
Response:
1
{
2
"provider": [
3
254,
4
2,
5
0,
6
0
7
],
8
"_links": {
9
"self": {
10
"href": "/v1/provider/send"
11
}
12
}
13
}
Copied!

Default State

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{Bobbie Serial Number}”,
3
"command" : "default_state",
4
"state" : 2 // 0-OFF, 1-ON, 2-DO NOTHING
5
}
Copied!
Response:
1
{
2
"provider": [
3
254,
4
16,
5
0,
6
0
7
],
8
"_links": {
9
"self": {
10
"href": "/v1/provider/send"
11
}
12
}
13
}
Copied!

Turning OFF/ON the LED light

Request URL:
1
POST /provider/send
Copied!
Headers:
1
Content-Type: application/json
2
Authorization: Bearer {access_token}
Copied!
Body:
1
{
2
"serial_number": “{Bobbie Serial Number}”,
3
"command" : "led_on_off",
4
"state" : 1 // 0-OFF, 1-ON
5
}
Copied!
Response:
1
{
2
"provider": [
3
254,
4
12,
5
0,
6
0
7
],
8
"_links": {
9
"self": {
10
"href": "/v1/provider/send"
11
}
12
}
13
}
Copied!

Last modified 5mo ago