Go to file
2024-09-09 04:04:18 +03:00
.gitignore :3 2024-09-09 04:04:18 +03:00
pyproject.toml :3 2024-09-09 04:04:18 +03:00
README.md :3 2024-08-28 06:42:21 +03:00
server.py :3 2024-09-09 04:04:18 +03:00

rfc

GET  /api/ws
GET  /api/cc/{uuid}/keypad/code
GET  /api/cc/{uuid}/keypad/get_user_info/{uid}
POST /api/cc/{uuid}/keypad/log/door_open/{uid}
POST /api/cc/{uuid}/keypad/set_code
POST /api/cc/{uuid}/core/reboot
POST /api/cc/{uuid}/core/update

websocket

[
    0, // op
    {
        // data,
    }
]

on connect:

  • get client session code, to be used with api
  • get explicitly set computer name from db, by the CC:T computer id, or randomly generated UUID thats set on SW install,
  • on connect computer sends its module type eg. keypad, and gets extra info related to it, like: code, current.