node-red-contrib-hik-media-buffer 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +60 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ ## NODE-RED-CONTRIB-HIK-MEDIA-BUFFER
2
+
3
+ ## HIK MEDIA BUFFER NODE
4
+
5
+ <img src='C:\Users\APerucca\Pictures\Screenshots\hik-media-buffer-node.png'>
6
+
7
+ The Hik Media Buffer node connects to **_NVR_** and outputs the image and the video of the event in case of alarm.</br>
8
+ This node only detects **_"FieldDetection_** and **_"LineDetection"_** alarms but can also receive notification of a **_failed connection_** of the cameras or NVR.</br>
9
+
10
+ <img src='C:\Users\APerucca\Pictures\Screenshots\hik-media-buffer-configuration.png'>
11
+
12
+ To configure the node you need to enter the **_IP, user and password of the NVR_**, you can also choose the **_protocol_** and **_port_** to use.</br>
13
+ You must also enter, by pressing the **_"add"_** button, the **_channel and the correspective IP of the camera_**, finally you must enter the **_password of the cameras_**.</br>
14
+
15
+ This below is an example of msg output:</br>
16
+
17
+ ```javascript
18
+ msg = {
19
+ payload: object,
20
+ ip: "192.168.62.9", // IP of the camera
21
+ channel: "2", // Channel of the camera
22
+ event: "LineDetection", // Type of event deteced
23
+ videoPath: "C:\Users\APerucca\AppData\Local\Temp\hik_v_2_1774874791241.mp4", // Path of the video
24
+ imageBuffer: buffer[12360], // Buffer of the image
25
+ status: "online", // Status of the camera
26
+ _msgid: "45fd74589048966d",
27
+ };
28
+ ```
29
+ ## HIK SNAPSHOT NODE
30
+
31
+ <img src='C:\Users\APerucca\Pictures\Screenshots\hik-snapshot-node.png'>
32
+
33
+ The Hik Snapshot node connects to **_NVR_** and generates a live image for each camera when it receives **_payload = true_** as input.
34
+ This node can also report if there are recordings of the day this node is triggered for each camera.
35
+
36
+ <img src='C:\Users\APerucca\Pictures\Screenshots\hik-snapshot-configuration.png'>
37
+
38
+ To configure the node you need to enter the **_IP, user and password of the NVR_**, you can also choose the **_protocol_** and **_port_** to use.</br>
39
+ You must also enter the number of the channels you want to get the snapshot of.</br>
40
+ If you enter "5", you will get the output of the first 5 channel on the NVR, so if you have 5 cameras on the NVR but one of them is not on the first five channels you won't get the snapshot of that camera.</br>
41
+
42
+ This below is an example of msg output:</br>
43
+
44
+ ```javascript
45
+ msg = {
46
+ payload: array[5], // 5 channels
47
+ 0: object,
48
+ channel: 1, // Channel 1 of the NVR
49
+ photo: buffer[18080], // Snapshot buffer
50
+ snapOk: true, // True if it gets the snapshot, False if not
51
+ isRecording: true, // True if it the camera recorded something that day, False if not
52
+ 1: object,
53
+ channel: 2,
54
+ photo: buffer[35056],
55
+ snapOk: true,
56
+ isRecording: true,
57
+ 2: object,
58
+ 3: object,
59
+ 4: object,
60
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-hik-media-buffer",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Ottiene buffer video e immagine da camere Hikvision via ISAPI",
5
5
  "node-red": {
6
6
  "nodes": {