node-red-contrib-hik-media-buffer 1.1.72 → 1.1.73
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 +2 -2
- package/package.json +1 -1
package/hik-media-buffer.js
CHANGED
|
@@ -123,7 +123,7 @@ module.exports = function(RED) {
|
|
|
123
123
|
if (nowTime - lastTriggerTime[camera.ip] < 5000) return;
|
|
124
124
|
lastTriggerTime[camera.ip] = nowTime;
|
|
125
125
|
|
|
126
|
-
const camAuth = new AxiosDigestAuth({ username: node.user, password: node.
|
|
126
|
+
const camAuth = new AxiosDigestAuth({ username: node.user, password: node.pass });
|
|
127
127
|
const referenceTime = new Date();
|
|
128
128
|
const timestamp = Math.floor(referenceTime.getTime() / 1000);
|
|
129
129
|
const startTime = toHikDate(new Date(referenceTime.getTime() - (10 * 1000)));
|
|
@@ -132,7 +132,7 @@ module.exports = function(RED) {
|
|
|
132
132
|
node.status({fill:"yellow", shape:"dot", text:`Download Cam ${channelID}...`});
|
|
133
133
|
await new Promise(resolve => setTimeout(resolve, 6000));
|
|
134
134
|
|
|
135
|
-
const baseUrl = `${node.protocol}://${
|
|
135
|
+
const baseUrl = `${node.protocol}://${node.host}:${node.port}/ISAPI/ContentMgmt`;
|
|
136
136
|
|
|
137
137
|
// struttura del payload per Python
|
|
138
138
|
let output = {
|