node-red-contrib-hikvision-ultimate
Advanced tools
Comparing version 1.1.15 to 1.1.16
@@ -7,2 +7,6 @@ <p align="center"><img src='https://raw.githubusercontent.com/Supergiovane/node-red-contrib-hikvision-ultimate/master/img/logo.png' width="40%"></p> | ||
<p> | ||
<b>Version 1.1.16</b> April 2024<br/> | ||
- Fixed somme try-catch functions.<br/> | ||
</p> | ||
<p> | ||
<b>Version 1.1.15</b> April 2024<br/> | ||
@@ -9,0 +13,0 @@ - Doorbel node: fixed a crash if you send msg.hangUp = true, when the doorbell cannot be reached.<br/> |
@@ -351,4 +351,4 @@ | ||
}`; | ||
// TEST VERSION 1.0 | ||
msg.payload = `{ | ||
// TEST VERSION 1.0 | ||
msg.payload = `{ | ||
"$":{ | ||
@@ -370,10 +370,20 @@ "version":"1.0", | ||
msg.payload = JSON.parse(msg.payload); | ||
node.sendPayload(msg); | ||
setTimeout(() => { | ||
msg.payload = `{"$":{"version":"2.0","xmlns":"http://www.hikvision.com/ver20/XMLSchema"},"ipAddress":"10.0.0.2","ipv6Address":"::ffff:10.0.0.2","portNo":"80","protocol":"HTTP","macAddress":"08:a1:89:6a:3d:59","channelID":"1","dateTime":"2021-04-24T16:59:56+08:00","activePostCount":"1","eventType":"fielddetection","eventState":"inactive","eventDescription":"fielddetection alarm","channelName":"Hik"}`; | ||
try { | ||
msg.payload = JSON.parse(msg.payload); | ||
node.sendPayload(msg); | ||
}, 5000); | ||
setTimeout(() => { | ||
msg.payload = `{"$":{"version":"2.0","xmlns":"http://www.hikvision.com/ver20/XMLSchema"},"ipAddress":"10.0.0.2","ipv6Address":"::ffff:10.0.0.2","portNo":"80","protocol":"HTTP","macAddress":"08:a1:89:6a:3d:59","channelID":"1","dateTime":"2021-04-24T16:59:56+08:00","activePostCount":"1","eventType":"fielddetection","eventState":"inactive","eventDescription":"fielddetection alarm","channelName":"Hik"}`; | ||
try { | ||
msg.payload = JSON.parse(msg.payload); | ||
node.sendPayload(msg); | ||
} catch (error) { | ||
} | ||
}, 5000); | ||
} catch (error) { | ||
} | ||
}); | ||
@@ -380,0 +390,0 @@ |
{ | ||
"name": "node-red-contrib-hikvision-ultimate", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"description": "A native set of nodes for Hikvision (and compatible) Cameras, Alarms, Radars, NVR, Doorbells, etc.", | ||
@@ -5,0 +5,0 @@ "author": "Supergiovane (https://github.com/Supergiovane)", |
4889126
4889