node-red-contrib-hik-media-buffer 1.0.13 → 1.0.15
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.
- package/hik-media-buffer.html +21 -20
- package/hik-snapshot.html +27 -28
- package/package.json +1 -1
package/hik-media-buffer.html
CHANGED
|
@@ -96,29 +96,30 @@
|
|
|
96
96
|
</div>
|
|
97
97
|
</script>
|
|
98
98
|
<script type="text/markdown" data-help-name="hik-media-buffer">
|
|
99
|
-
|
|
99
|
+
## HIK MEDIA BUFFER NODE
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
<img src='img/hik-media-buffer-node.png'>
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
The Hik Media Buffer node connects to NVR and outputs the image and the video of the event in case of alarm.</br>
|
|
104
|
+
This node only detects "FieldDetection" and "LineDetection" alarms but can also receive notification of a failed connection of the cameras or NVR.</br>
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
<img src='img/hik-media-buffer-configuration.png'>
|
|
107
107
|
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
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>
|
|
109
|
+
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>
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
This below is an example of msg output:</br>
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
113
|
+
```javascript
|
|
114
|
+
msg = {
|
|
115
|
+
payload: object,
|
|
116
|
+
ip: "192.168.62.9", // IP of the camera
|
|
117
|
+
channel: "2", // Channel of the camera
|
|
118
|
+
event: "LineDetection", // Type of event deteced
|
|
119
|
+
videoPath: "C:\Users\APerucca\AppData\Local\Temp\hik_v_2_1774874791241.mp4", // Path of the video
|
|
120
|
+
imageBuffer: buffer[12360], // Buffer of the image
|
|
121
|
+
status: "online", // Status of the camera
|
|
122
|
+
_msgid: "45fd74589048966d"
|
|
123
|
+
};
|
|
124
|
+
```
|
|
125
|
+
</script>
|
package/hik-snapshot.html
CHANGED
|
@@ -68,39 +68,38 @@
|
|
|
68
68
|
</div>
|
|
69
69
|
|
|
70
70
|
</script>
|
|
71
|
-
|
|
72
71
|
<script type="text/markdown" data-help-name="hik-snapshot">
|
|
73
|
-
|
|
72
|
+
## HIK SNAPSHOT NODE
|
|
74
73
|
|
|
75
|
-
|
|
74
|
+
<img src='img/hik-snapshot-node.png'>
|
|
76
75
|
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
The Hik Snapshot node connects to NVR and generates a live image for each camera when it receives payload = true as input.
|
|
77
|
+
This node can also report if there are recordings of the day this node is triggered for each camera.
|
|
79
78
|
|
|
80
|
-
|
|
79
|
+
<img src='img/hik-snapshot-configuration.png'>
|
|
81
80
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
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>
|
|
82
|
+
You must also enter the number of the channels you want to get the snapshot of.</br>
|
|
83
|
+
If you enter "5", you will get the output of the first 5 channels 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>
|
|
85
84
|
|
|
86
|
-
|
|
85
|
+
This below is an example of msg output:</br>
|
|
87
86
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
87
|
+
```javascript
|
|
88
|
+
msg = {
|
|
89
|
+
payload: array[5], // 5 channels
|
|
90
|
+
0: object,
|
|
91
|
+
channel: 1, // Channel 1 of the NVR
|
|
92
|
+
photo: buffer[18080], // Snapshot buffer
|
|
93
|
+
snapOk: true, // True if it gets the snapshot, False if not
|
|
94
|
+
isRecording: true, // True if it the camera recorded something that day, False if not
|
|
95
|
+
1: object,
|
|
96
|
+
channel: 2,
|
|
97
|
+
photo: buffer[35056],
|
|
98
|
+
snapOk: true,
|
|
99
|
+
isRecording: true,
|
|
100
|
+
2: object,
|
|
101
|
+
3: object,
|
|
102
|
+
4: object
|
|
103
|
+
}
|
|
104
|
+
```
|
|
106
105
|
</script>
|