node-red-contrib-hik-media-buffer 1.1.35 → 1.1.36
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.js +4 -2
- package/package.json +1 -1
package/hik-media-buffer.js
CHANGED
|
@@ -253,9 +253,11 @@ module.exports = function(RED) {
|
|
|
253
253
|
// Se l'host di ascolto coincide con l'IP della telecamera termica (canale 2)
|
|
254
254
|
// e la telecamera restituisce erroneamente canale 1, forziamo il canale a 2
|
|
255
255
|
const camTermica = node.cameras.find(c => c.channel == "2");
|
|
256
|
-
if (camTermica && node.host === camTermica.ip
|
|
257
|
-
channelID = "2";
|
|
256
|
+
if (camTermica && node.host === camTermica.ip) {
|
|
258
257
|
currentEventList = EventListCAM;
|
|
258
|
+
if (channelID === "1") {
|
|
259
|
+
channelID = "2";
|
|
260
|
+
}
|
|
259
261
|
}
|
|
260
262
|
let ev = "Unknown";
|
|
261
263
|
for (let e of currentEventList) { if (data.includes(e.toLowerCase())) { ev = e; break; } }
|