mirror of
https://github.com/koush/scrypted.git
synced 2026-09-17 09:10:38 +01:00
hikvision: remove logging
This commit is contained in:
4
plugins/hikvision/package-lock.json
generated
4
plugins/hikvision/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/hikvision",
|
||||
"version": "0.0.53",
|
||||
"version": "0.0.54",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/hikvision",
|
||||
"version": "0.0.53",
|
||||
"version": "0.0.54",
|
||||
"license": "Apache",
|
||||
"dependencies": {
|
||||
"@mhoc/axios-digest-auth": "^0.7.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/hikvision",
|
||||
"version": "0.0.53",
|
||||
"version": "0.0.54",
|
||||
"description": "HikVision Plugin for Scrypted",
|
||||
"author": "Scrypted",
|
||||
"license": "Apache",
|
||||
|
||||
@@ -78,7 +78,7 @@ export class HikVisionCameraAPI {
|
||||
|
||||
stream.on('data', (buffer: Buffer) => {
|
||||
const data = buffer.toString();
|
||||
this.console.log(data);
|
||||
// this.console.log(data);
|
||||
for (const event of Object.values(HikVisionCameraEvent)) {
|
||||
if (data.indexOf(event) !== -1) {
|
||||
const channel = data.match(/<channelID>(.*?)</)?.[1] || data.match(/<dynChannelID>(.*?)</)?.[1];
|
||||
|
||||
Reference in New Issue
Block a user