node-red-contrib-hikvision-ultimate
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -5,2 +5,6 @@ # node-red-contrib-hikvision-ultimate | ||
<p> | ||
<b>Version 0.0.21 GA VERSION WITH STABLE BEHAVOUR</b> December 2020<br/> | ||
- Changed timeout in hearthbeat. More relaxed, to avoid false disconnections messages.<br/> | ||
</p> | ||
<p> | ||
<b>Version 0.0.20 GA VERSION WITH STABLE BEHAVOUR</b> December 2020<br/> | ||
@@ -7,0 +11,0 @@ - NEW: added the PIN 2 for signalling errors.<br/> |
@@ -47,3 +47,3 @@ | ||
setTimeout(startAlarmStream, 2000); // Reconnect | ||
}, 26000); | ||
}, 50000); | ||
} | ||
@@ -87,6 +87,5 @@ | ||
result += chunk.toString(); | ||
// console.log("BANANA CHUNK " + chunk.toString()); | ||
// Gotta --boundary, process the message | ||
if (result.toString().indexOf("--boundary") > -1) { | ||
// console.log("BANANA FOUND BOUNDARY"); | ||
// console.log("BANANA FOUND BOUNDARY: PROCESSO: " + result); | ||
var sRet = result.toString(); | ||
@@ -134,3 +133,3 @@ result = ""; // Reset the result | ||
RED.log.info("Hikvision-config: readStream error: " + (error.message || " unknown error")); | ||
node.errorDescription = "readStream error " + (error.message || " unknown error"); | ||
node.errorDescription = "readStream error " + (error.message || " unknown error"); | ||
throw (error); | ||
@@ -144,7 +143,7 @@ | ||
const response = await client.fetch("http://" + node.host + "/ISAPI/Event/notification/alertStream", options); | ||
if (response.status >= 200 && response.status <= 300) { | ||
node.setAllClientsStatus({ fill: "green", shape: "ring", text: "Waiting for Alarm." }); | ||
} else { | ||
node.setAllClientsStatus({ fill: "red", shape: "ring", text: response.statusText || " unknown response code"}); | ||
node.setAllClientsStatus({ fill: "red", shape: "ring", text: response.statusText || " unknown response code" }); | ||
// console.log("BANANA Error response " + response.statusText); | ||
@@ -151,0 +150,0 @@ node.errorDescription = "StatusResponse problem " + (response.statusText || " unknown status response code"); |
{ | ||
"name": "node-red-contrib-hikvision-ultimate", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "A native set of node for Hikvision Cameras, Alarms, Radars etc.", | ||
@@ -5,0 +5,0 @@ "author": "Supergiovane (https://github.com/Supergiovane)", |
@@ -15,8 +15,6 @@ # node-red-contrib-hikvision-ultimate | ||
## DESCRIPTION | ||
This is a set of nodes to handle ISAPI Hikvision messages.<br/> | ||
Works with cameras, NVR and also with specialized devices, like Radar (for example DS-PR1-60 and 120).<br/> | ||
Digest authentication is the default, so it should work with all gears!<br/> | ||
This is a set of nodes to handle ISAPI Hikvision messages. It works exclusively with ***HIKVISION*** devices.<br/> | ||
Works with cameras, NVR and also with specialized devices, like Radar (for example DS-PR1-60, DS-PR1-100 and DS-PR1-120).<br/> | ||
Digest authentication: it should work with all devices.<br/> | ||
All nodes are capable of auto reconnect if the connection is lost and are able to actively monitor the connection.<br/> | ||
In case of disconnection or network issues, the nodes will output a message with **msg.connected = false** and *null* payload.<br/> | ||
There are currently **only two nodes**, one that traps the alarms, in RAW mode, and outputs a JSON and the other that outputs the ANPR License Plate numbers.<br/> | ||
The node uses pipelines to handle streams, so you need at least **Node V.10.0.0**, or newer, installed. To check Node version, type **node -v** in a command prompt.<br/> | ||
@@ -31,6 +29,5 @@ | ||
<br/> | ||
<br/> | ||
## - RAW Alarm Node | ||
The RAW alarm node connects to NVR, Camera, Alarm system, Radars etc. and outputs the alarm received. <br/> | ||
The RAW alarm node connects to ***NVR, Camera, Alarm system, Radars etc...*** and outputs the alarm received. <br/> | ||
@@ -41,5 +38,5 @@ <img src='https://raw.githubusercontent.com/Supergiovane/node-red-contrib-hikvision-ultimate/master/img/RawAlarm.png' width="80%"> | ||
The node outputs a payload on **PIN 1** that can vary, depending from the alarm type sent by the connected device.</br> | ||
The node outputs a payload on **PIN 1** that can vary, depending on the alarm type sent by the connected device.</br> | ||
The node outputs a payload on **PIN 2**, representing a connection error. ***TRUE*** if error, otherwise ***FALSE***</br> | ||
This below, is only an example (in this case, a movement detected from a radar)</br> | ||
This below is an example of msg output (in this case, a movement detected from a radar)</br> | ||
@@ -96,2 +93,3 @@ | ||
## - ANPR (License Plate) Node | ||
This node works with Hikvision ANPR cameras.<br/> | ||
@@ -134,2 +132,3 @@ <img src='https://raw.githubusercontent.com/Supergiovane/node-red-contrib-hikvision-ultimate/master/img/ANPR.png' width="80%"> | ||
## - Radar Alarm Node | ||
This node works with Hikvision Radars.<br/> | ||
@@ -136,0 +135,0 @@ <img src='https://raw.githubusercontent.com/Supergiovane/node-red-contrib-hikvision-ultimate/master/img/Radar.png' width="80%"> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
303533
630
202