node-red-contrib-hikvision-ultimate
Advanced tools
Comparing version 1.0.41 to 1.0.42
@@ -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.0.42</b> April 2021<br/> | ||
- Server node: the port config was totally ignored. Fixed, now you can set the port as well and it works. Thanks to @Mateiuc.<br/> | ||
</p> | ||
<p> | ||
<b>Version 1.0.41</b> April 2021<br/> | ||
@@ -9,0 +13,0 @@ - Picture Image: Better handling of automatic URLs selection.<br/> |
@@ -12,5 +12,5 @@ | ||
var node = this | ||
node.port = config.port || 80; | ||
node.debug = config.host.toString().toLowerCase().indexOf("banana") > -1; | ||
node.host = config.host.toString().toLowerCase().replace("banana", ""); | ||
node.port = config.port; | ||
node.host = config.host.toString().toLowerCase().replace("banana", "") + ":" + node.port; | ||
node.protocol = config.protocol || "http"; | ||
@@ -17,0 +17,0 @@ node.nodeClients = []; // Stores the registered clients |
@@ -12,5 +12,5 @@ | ||
var node = this | ||
node.port = config.port || 80; | ||
node.debug = config.host.toString().toLowerCase().indexOf("banana") > -1; | ||
node.host = config.host.toString().toLowerCase().replace("banana", ""); | ||
node.port = config.port; | ||
node.host = config.host.toString().toLowerCase().replace("banana", "") + ":" + node.port; | ||
node.protocol = config.protocol || "http"; | ||
@@ -68,3 +68,3 @@ node.nodeClients = []; // Stores the registered clients | ||
try { | ||
const resInfo = await clientInfo.fetch(jParams.protocol + "://" + jParams.host + "/ISAPI/System/deviceInfo", opt); | ||
const resInfo = await clientInfo.fetch(jParams.protocol + "://" + jParams.host + ":" + jParams.port + "/ISAPI/System/deviceInfo", opt); | ||
const body = await resInfo.text(); | ||
@@ -71,0 +71,0 @@ xml2js(body, function (err, result) { |
{ | ||
"name": "node-red-contrib-hikvision-ultimate", | ||
"version": "1.0.41", | ||
"version": "1.0.42", | ||
"description": "A native set of nodes for Hikvision Cameras, Alarms, Radars etc.", | ||
@@ -5,0 +5,0 @@ "author": "Supergiovane (https://github.com/Supergiovane)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1416677