This endpoint is now publicly available without the need of an authorization Signed-off-by: Klagarge <remi@heredero.ch>
21 lines
545 B
HTTP
21 lines
545 B
HTTP
@host = https://api.db.e.kb28.ch
|
|
@room-id = B3
|
|
@username = PIE2EEDA
|
|
@password =
|
|
|
|
### GET last value of temp, co2, humidity, windows states
|
|
GET {{host}}/api/v1/rooms/{{room-id}}/current
|
|
Authorization: Basic {{username}} {{password}}
|
|
|
|
### GET history of a room
|
|
@window = 1 day
|
|
GET {{host}}/api/v1/rooms/{{room-id}}/history?window={{window}}
|
|
Authorization: Basic {{username}} {{password}}
|
|
|
|
### GET all rooms
|
|
GET {{host}}/api/v1/rooms
|
|
Authorization: Basic {{username}} {{password}}
|
|
|
|
### GET battery status of all devices
|
|
GET {{host}}/api/v1/battery
|