Enable the mqtt plugin and configure the external broker address in sentryshot.toml
{
"monitorID": "one",
"monitorName": "camera_1",
"label": "person",
"score": 63.671875,
"time": "2024-11-20T14:23:15.437494909Z",
"source": "tflite"
}{
"monitorID": "one",
"monitorName": "camera_1",
"label": "zone0",
"score": 48.39815,
"time": "2024-11-20T14:23:15.437494909Z",
"source": "motion"
}There is a /api page where you can try the endpoints.
All requests require basic auth, POST, PUT and DELETE requests need to have a matching CSRF-token in the X-CSRF-TOKEN header.
curl -u user:pass -X GET https://127.0.0.1/api/accounts
TOKEN=$(curl -k -u user:pass -X GET https://127.0.0.1:2020/api/account/my-token)
#printf "token: %s\n" "$TOKEN"
curl -k -u user:pass -X DELETE https://127.0.0.1:2020/api/account?id=x -H "X-CSRF-TOKEN: $TOKEN"Returns the temporary CSRF-token for your account.
Toggle detector and restart monitor.