Event

Event Notification

Receive live event data from NVR.

Notification URL

To get event notification, request the following:

GET /api/events/notify

This is an example response to the above request.

HTTP/1.1 200 OK
Content-Type: text/event-stream
Cache-Control: no-cache

data: {"type":0,"timestamp":1489664896,"devices":[45]}

data: {"type":0,"timestamp":1489664896,"devices":[30]}

data: {"type":0,"timestamp":1489664896,"devices":[107]}

...

You can read HTML5 SSE(Server-Sent Events) specification for more details.

Notification Parameters

When you request a notification, you can specify the filter parameters as follows:

Event types and device numbers can be described like 0,3-4,7.

For example, you can request notification only for LPR events like:

GET /api/events/notify?types=33

Search event data saved in NVR.

User Authentication

HTTP Basic authentication is required. The user must have search permission.

Search URL

To get the all events, request the following:

GET /api/events

This is an example response to the above request.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "total":69096,
  "offset":0,
  "limit":10,
  "events": [
    { "type":30, "timestamp":1487071279, "devices":[79] },
    { "type":9, "timestamp":1487071279, "devices":[79] },
    { "type":33, "timestamp":1487563829, "devices":[115],
      "lpr": {"lpn":"35오2115", "place":"test"} }
    ...
  ]
}

Search Parameters

When you request a search, you can specify the search parameters as follows:

Event types and device numbers can be described like 0,3-4,7.

For example, you can request a search like:

GET /api/events?types=33&since=2017-02-20

Event Types

Value Description
* All Events
0 MOTION
1 SENSOR
2 RELAY
3 DISK_ERROR
4 VIDEO_LOSS
5 PHONE
6 ANALOG
7 DISK_SMART
8 VIDEO_RECOVERY
9 VCA_PRESENCE
10 VCA_ENTER
11 VCA_EXIT
12 VCA_APPEAR
13 VCA_DISAPPEAR
14 VCA_STOP
15 VCA_DWELL
16 VCA_DIRECTION
17 VCA_SPEED
18 VCA_AREA
19 VCA_ABOBJ
20 VCA_RMOBJ
21 VCA_ABRMOBJ
22 VCA_TAILGATING
23 VCA_LINECOUNTERA
24 VCA_LINECOUNTERB
25 VCA_CUSTOM
26 VCA_COLFILTER
27 VCA_SMOKE
28 VCA_FIRE
29 VCA_TAMPER
30 VCA_COUNTER
31 SIS_ALARM
32 EMERGENCY_CALL
33 LPR
34 SEAKY_POS
35 ELEVATOR
36 232_POS
37 FLAME
38 SMOKE
39 BILL_COUNTER
40 BUSAN_METRO
41 AUDIO_DETECT
42 AXIS_VCA
43 SAFE_MATE
44 INTELLIVIX_VCA
45 DOOWON_VCA
46 THERMAL

Sort Types

Value Description
0 TIME_DESCENDING
1 TIME_ASCENDING
2 EVENT_TYPE
3 DEVICE_NUMBER

Extra Parameters


© NVRSW.com 2016-2018 Thu Sep 20 2018 14:08:22 GMT+0900 (대한민국 표준시)