node-red-contrib-hik-media-buffer 1.1.59 → 1.1.60
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 +6 -6
- package/package.json +2 -2
package/hik-media-buffer.js
CHANGED
|
@@ -174,13 +174,13 @@ module.exports = function(RED) {
|
|
|
174
174
|
|
|
175
175
|
try {
|
|
176
176
|
for (let t of tracks) {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
//
|
|
180
|
-
|
|
177
|
+
node.warn(`[warn] [hik-media-buffer:test] [STEP 4] Elaborazione traccia ${t.label} (ID: ${t.id})`);
|
|
178
|
+
|
|
179
|
+
// SVEGLIA: Questo è il TUO XML originale identico riga per riga,
|
|
180
|
+
// abbiamo solo cambiato il contenuto del descriptor inserendo quello dell'NVR senza i due slash '//'
|
|
181
|
+
const descriptorTarget = `recordType.meta.hikvision.com/${eventoNVR}`;
|
|
181
182
|
|
|
182
|
-
|
|
183
|
-
const searchXml = `<?xml version="1.0" encoding="utf-8"?><CMSearchDescription><searchID>LAST_EVENT</searchID><trackIDList><trackID>${t.id}</trackID></trackIDList><timeSpanList><timeSpan><startTime>${startTime}</startTime><endTime>${endTime}</endTime></timeSpan></timeSpanList><maxResults>30</maxResults><metadataList><metadataDescriptor>${descriptorTarget}</metadataDescriptor></metadataList></CMSearchDescription>`;
|
|
183
|
+
const searchXml = `<?xml version="1.0" encoding="utf-8"?><CMSearchDescription><searchID>LAST_EVENT</searchID><trackIDList><trackID>${t.id}</trackID></trackIDList><timeSpanList><timeSpan><startTime>${startTime}</startTime><endTime>${endTime}</endTime></timeSpan></timeSpanList><maxResults>100</maxResults><metadataList><metadataDescriptor>${descriptorTarget}</metadataDescriptor></metadataList></CMSearchDescription>`;
|
|
184
184
|
|
|
185
185
|
node.warn(`[warn] [hik-media-buffer:test] [STEP 4.1] Invio POST /search per traccia ${t.id}. XML inviato:\n${searchXml}`);
|
|
186
186
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-hik-media-buffer",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.60",
|
|
4
4
|
"description": "Ottiene buffer video e immagine da camere Hikvision via ISAPI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node-red",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@mhoc/axios-digest-auth": "^0.8.0",
|
|
24
24
|
"axios": "^1.6.0",
|
|
25
|
-
"node-red-contrib-hik-media-buffer": "^1.1.
|
|
25
|
+
"node-red-contrib-hik-media-buffer": "^1.1.59",
|
|
26
26
|
"xml2js": "^0.6.2"
|
|
27
27
|
}
|
|
28
28
|
}
|