hikvision-camera-bot: Duplicated events and mixed up camera names

I have attached the config I use. There are two cameras.

It is working to send a Video files every 30 minutes, but every time it sends duplicated videos and sometimes wrong name of a camera. Please confirm that my config is correct, if it is, a bug fix needed.

Example, I’m getting two exactly the same videos one by one: Video from Вхід #vhid Video from Двір #dvir And another two videos for the second camera, exactly the same with different labels: Video from Вхід #vhid Video from Двір #dvir

{
    "telegram":
    {
        "api_id": 0000000,
        "api_hash": "....",
        "lang_code": "en",
        "token": "....:....",
        "chat_users":
        [
            14000000000
        ],
        "alert_users":
        [
            14000000000
        ],
        "startup_message_users":
        [
            14000000000
        ]
    },
    "log_level": "INFO",
    "camera_list":
    {
        "cam_1":
        {
            "hidden": false,
            "description": "Двір",
            "hashtag": "dvir",
            "group": "Default",
            "api":
            {
                "host": "http://....",
                "port": 80,
                "auth":
                {
                    "user": "telegram",
                    "password": "....",
                    "type": "digest_cached"
                },
                "stream_timeout": 10
            },
            "rtsp_port": 554,
            "nvr":
            {
                "is_behind": false,
                "channel_name": ""
            },
            "picture":
            {
                "on_demand":
                {
                    "channel": 101
                },
                "on_alert":
                {
                    "channel": 101
                }
            },
            "video_gif":
            {
                "on_demand":
                {
                    "channel": 101,
                    "record_time": 10,
                    "rewind_time": 10,
                    "tmp_storage": "/tmp",
                    "loglevel": "error",
                    "rtsp_transport_type": "tcp"
                },
                "on_alert":
                {
                    "channel": 101,
                    "record_time": 10,
                    "rewind_time": 10,
                    "rewind": true,
                    "tmp_storage": "/tmp",
                    "loglevel": "error",
                    "rtsp_transport_type": "tcp"
                }
            },
            "alert":
            {
                "delay": 15,
                "motion_detection":
                {
                    "enabled": true,
                    "sendpic": true,
                    "fullpic": false,
                    "send_videogif": true,
                    "send_text": true
                },
                "line_crossing_detection":
                {
                    "enabled": false,
                    "sendpic": true,
                    "fullpic": false,
                    "send_videogif": true,
                    "send_text": true
                },
                "intrusion_detection":
                {
                    "enabled": false,
                    "sendpic": true,
                    "fullpic": false,
                    "send_videogif": true,
                    "send_text": true
                }
            },
            "livestream":
            {
                "youtube":
                {
                    "enabled": false,
                    "livestream_template": "tpl_kitchen",
                    "encoding_template": "direct.kitchen_youtube"
                },
                "telegram":
                {
                    "enabled": false,
                    "livestream_template": "tpl_kitchen",
                    "encoding_template": "direct.kitchen_telegram"
                },
                "srs":
                {
                    "enabled": false,
                    "livestream_template": "tpl_kitchen",
                    "encoding_template": "direct.kitchen_srs"
                },
                "dvr":
                {
                    "enabled": true,
                    "local_storage_path": "/data/dvr",
                    "livestream_template": "tpl_kitchen",
                    "encoding_template": "direct.kitchen_dvr",
                    "upload":
                    {
                        "delete_after_upload": true,
                        "storage":
                        {
                            "telegram":
                            {
                                "enabled": true,
                                "group_id": -1001234567890
                            }
                        }
                    }
                },
                "icecast":
                {
                    "enabled": false,
                    "livestream_template": "tpl_kitchen",
                    "encoding_template": "vp9.kitchen"
                }
            },
            "command_sections_visibility":
            {
                "general": true,
                "infrared": false,
                "motion_detection": true,
                "line_detection": false,
                "intrusion_detection": false,
                "alert_service": false,
                "stream_youtube": false,
                "stream_telegram": true,
                "stream_icecast": false
            }
        },
        "cam_2":
        {
            "hidden": false,
            "description": "Вхід",
            "hashtag": "vhid",
            "group": "Default",
            "api":
            {
                "host": "http://..",
                "port": 80,
                "auth":
                {
                    "user": "telegram",
                    "password": "...",
                    "type": "basic"
                },
                "stream_timeout": 10
            },
            "rtsp_port": 554,
            "nvr":
            {
                "is_behind": false,
                "channel_name": ""
            },
            "picture":
            {
                "on_demand":
                {
                    "channel": 101
                },
                "on_alert":
                {
                    "channel": 101
                }
            },
            "video_gif":
            {
                "on_demand":
                {
                    "channel": 101,
                    "record_time": 10,
                    "rewind_time": 10,
                    "tmp_storage": "/tmp",
                    "loglevel": "error",
                    "rtsp_transport_type": "tcp"
                },
                "on_alert":
                {
                    "channel": 101,
                    "record_time": 10,
                    "rewind_time": 10,
                    "rewind": true,
                    "tmp_storage": "/tmp",
                    "loglevel": "error",
                    "rtsp_transport_type": "tcp"
                }
            },
            "alert":
            {
                "delay": 15,
                "motion_detection":
                {
                    "enabled": true,
                    "sendpic": true,
                    "fullpic": false,
                    "send_videogif": true,
                    "send_text": true
                },
                "line_crossing_detection":
                {
                    "enabled": false,
                    "sendpic": true,
                    "fullpic": false,
                    "send_videogif": true,
                    "send_text": true
                },
                "intrusion_detection":
                {
                    "enabled": false,
                    "sendpic": true,
                    "fullpic": false,
                    "send_videogif": true,
                    "send_text": true
                }
            },
            "livestream":
            {
                "youtube":
                {
                    "enabled": false,
                    "livestream_template": "tpl_kitchen",
                    "encoding_template": "direct.kitchen_youtube"
                },
                "telegram":
                {
                    "enabled": false,
                    "livestream_template": "tpl_kitchen",
                    "encoding_template": "direct.kitchen_telegram"
                },
                "srs":
                {
                    "enabled": false,
                    "livestream_template": "tpl_kitchen",
                    "encoding_template": "direct.kitchen_srs"
                },
                "dvr":
                {
                    "enabled": true,
                    "local_storage_path": "/data/dvr",
                    "livestream_template": "tpl_kitchen",
                    "encoding_template": "direct.kitchen_dvr",
                    "upload":
                    {
                        "delete_after_upload": true,
                        "storage":
                        {
                            "telegram":
                            {
                                "enabled": true,
                                "group_id": -1001234567890
                            }
                        }
                    }
                },
                "icecast":
                {
                    "enabled": false,
                    "livestream_template": "tpl_kitchen",
                    "encoding_template": "vp9.kitchen"
                }
            },
            "command_sections_visibility":
            {
                "general": true,
                "infrared": false,
                "motion_detection": true,
                "line_detection": false,
                "intrusion_detection": false,
                "alert_service": false,
                "stream_youtube": false,
                "stream_telegram": true,
                "stream_icecast": false
            }
        }
    }
}

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 26 (11 by maintainers)

Most upvoted comments

I will try to reproduce.

Please pull the latest changes. Should be fixed now.