Skip to content
Vencislav Atanasov edited this page Sep 10, 2016 · 1 revision

API

Public

Door status

Request:

/api/door/status.json

Response:

{
    "door": ("open" | "closed"),
    "latch": ("locked" | "unlocked")
}

Present users

Request:

/api/users/present.json

Response:

[{
    "id": 1,
    "name": "User 1",
    "url": "",
    "twitter": "user1",
    "username": "user1",
    "github": "user1",
    "jabber": "[email protected]",
    "picture": "http://example.com/picture/1"
}, {
    "id": 2,
    "name": "User 2",
    "url": "http://example.com/user2",
    "twitter": "user2",
    "username": "user2",
    "github": "user2",
    "jabber": "[email protected]",
    "picture": "http://example.com/picture/6"
}]

Lights status

Request:

/api/lights/status.json

Response:

{
    "status": ("on" | "off"),
    "policy": ("auto" | "always_on")
}
Clone this wiki locally