Go to file
2024-09-08 23:54:52 +00:00
src Initial UWU 2024-08-28 01:10:18 +03:00
.gitignore Initial UWU 2024-08-28 01:10:18 +03:00
package-lock.json Initial UWU 2024-08-28 01:10:18 +03:00
package.json Initial UWU 2024-08-28 01:10:18 +03:00
README.md Initial UWU 2024-08-28 01:10:18 +03:00
server.py Add server.py 2024-09-08 23:54:52 +00:00
tsconfig.json Initial UWU 2024-08-28 01:10:18 +03:00

rfc

GET  /api/ws
GET  /api/{uuid}/keypad/code
GET  /api/{uuid}/keypad/get_user_info/{uid}
POST /api/{uuid}/keypad/log/door_open/{uid}
POST /api/{uuid}/keypad/set_code
POST /api/{uuid}/core/reboot
POST /api/{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.