elad-bar / ha-shinobi

Shinobi Video custom component for HA
52 stars 4 forks source link

Component initializing but no devices are added #16

Closed Eldoras closed 3 years ago

Eldoras commented 3 years ago

The integration appears to be initializing but I never have any devices show up. I'm also getting one of the errors like SnakeZZZ was getting. HA: core-2021.9.5 Log: 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi] Starting async_setup_entry of shinobi 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.managers.configuration_manager] get_basic_data, data: {'host': '192.168.1.210', 'port': '8080', 'ssl': False, 'username': <removed>, 'password': '<also removed>', 'path': '/'} 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.models.base_entity] Starting async_setup_entry binary_sensor 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.models.base_entity] Starting async_setup_entry camera 2021-09-12 22:09:58 INFO (MainThread) [custom_components.shinobi.managers.home_assistant] Handling ConfigEntry change: {'entry_id': '39c67d9d8b4c6e43728f2136c9a1a4e0', 'version': 1, 'domain': 'shinobi', 'title': 'Shinobi Video', 'data': {'host': '192.168.1.210', 'port': '8080', 'ssl': False, 'username': '<removed>', 'password': '<removed>', 'path': '/'}, 'options': {}, 'pref_disable_new_entities': False, 'pref_disable_polling': False, 'source': 'user', 'unique_id': None, 'disabled_by': None} 2021-09-12 22:09:58 INFO (MainThread) [custom_components.shinobi.api.shinobi_api] Initializing Shinobi Video 2021-09-12 22:09:58 INFO (MainThread) [custom_components.shinobi.api.shinobi_api] Performing login 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] POST http://192.168.1.210:8080/?json=true 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Status of http://192.168.1.210:8080/?json=true: 200 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Temporary auth token: 90187c1bee884df83c1628cecb95de89 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] GET http://192.168.1.210:8080/90187c1bee884df83c1628cecb95de89/api/7LBLsFrGWs/list 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Status of http://192.168.1.210:8080/90187c1bee884df83c1628cecb95de89/api/7LBLsFrGWs/list: 200 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Permanent access token: d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.managers.home_assistant] Updating @2021-09-12 22:09:58.920775 2021-09-12 22:09:58 INFO (MainThread) [custom_components.shinobi.api.shinobi_api] Updating data from Shinobi Video Server (Shinobi Video) 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Retrieving camera list 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] GET http://192.168.1.210:8080/d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX/monitor/7LBLsFrGWs 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Status of http://192.168.1.210:8080/d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX/monitor/7LBLsFrGWs: 200 2021-09-12 22:09:58 ERROR (MainThread) [custom_components.shinobi.managers.home_assistant] Failed to async_update, Error: 'str' object has no attribute 'get', Line: 247 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Initializing WS connection 2021-09-12 22:09:58 INFO (MainThread) [custom_components.shinobi.api.shinobi_websocket] Starting to listen connected 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Connected, Message: {"sid":"i-ImWgOjhBgyR4NhAAEy","upgrades":[],"pingInterval":25000,"pingTimeout":5000} 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Back channel connected 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Sending message, Data: 42["f", {"auth": "d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX", "f": "init", "ke": "7LBLsFrGWs", "uid": "EnVInSV6Ev"}], Connected: True 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] WebSocket Connected 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: users_online 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: user_status_change 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: diskUsed 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: init_success 2021-09-12 22:09:58 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: monitor_snapshot 2021-09-12 22:10:03 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: os 2021-09-12 22:10:06 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] No payload handler available, Payload: ['ping', {'beat': 1}]

elad-bar commented 3 years ago

Will check later today, thanks for the log

elad-bar commented 3 years ago

@Eldoras not sure what is the cause of the issue, seems that the data that is being returned from the server is invalid, added more logs.

can you please reinstall, run and upload the log once again?

thanks

Eldoras commented 3 years ago

new log: 2021-09-15 10:30:30 DEBUG (MainThread) [custom_components.shinobi] Starting async_setup_entry of shinobi 2021-09-15 10:30:30 DEBUG (MainThread) [custom_components.shinobi.managers.configuration_manager] get_basic_data, data: {'host': '192.168.1.210', 'port': '8080', 'ssl': False, 'username': '<removed>', 'password': '<removed>', 'path': '/'} 2021-09-15 10:30:30 DEBUG (MainThread) [custom_components.shinobi.models.base_entity] Starting async_setup_entry binary_sensor 2021-09-15 10:30:30 DEBUG (MainThread) [custom_components.shinobi.models.base_entity] Starting async_setup_entry camera 2021-09-15 10:30:30 INFO (MainThread) [custom_components.shinobi.managers.home_assistant] Handling ConfigEntry change: {'entry_id': '39c67d9d8b4c6e43728f2136c9a1a4e0', 'version': 1, 'domain': 'shinobi', 'title': 'Shinobi Video', 'data': {'host': '192.168.1.210', 'port': '8080', 'ssl': False, 'username': '<removed>', 'password': '<removed>', 'path': '/'}, 'options': {}, 'pref_disable_new_entities': False, 'pref_disable_polling': False, 'source': 'user', 'unique_id': None, 'disabled_by': None} 2021-09-15 10:30:30 INFO (MainThread) [custom_components.shinobi.api.shinobi_api] Initializing Shinobi Video 2021-09-15 10:30:30 INFO (MainThread) [custom_components.shinobi.api.shinobi_api] Performing login 2021-09-15 10:30:30 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] POST http://192.168.1.210:8080/?json=true 2021-09-15 10:30:31 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Status of http://192.168.1.210:8080/?json=true: 200 2021-09-15 10:30:31 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Temporary auth token: ed56f52af434fb1f35a8427cf90f0bae 2021-09-15 10:30:31 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] GET http://192.168.1.210:8080/ed56f52af434fb1f35a8427cf90f0bae/api/7LBLsFrGWs/list 2021-09-15 10:30:31 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Status of http://192.168.1.210:8080/ed56f52af434fb1f35a8427cf90f0bae/api/7LBLsFrGWs/list: 200 2021-09-15 10:30:31 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Permanent access token: d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX 2021-09-15 10:30:31 DEBUG (MainThread) [custom_components.shinobi.managers.home_assistant] Updating @2021-09-15 10:30:31.984040 2021-09-15 10:30:31 INFO (MainThread) [custom_components.shinobi.api.shinobi_api] Updating data from Shinobi Video Server (Shinobi Video) 2021-09-15 10:30:31 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Retrieving camera list 2021-09-15 10:30:31 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] GET http://192.168.1.210:8080/d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX/monitor/7LBLsFrGWs 2021-09-15 10:30:32 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_api] Status of http://192.168.1.210:8080/d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX/monitor/7LBLsFrGWs: 200 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: mid, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: ke, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: name, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: shto, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: shfr, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: details, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: type, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: ext, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: protocol, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: host, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: path, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: port, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: fps, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: mode, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: width, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: height, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: currentlyWatching, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: currentCpuUsage, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: status, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: snapshot, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: streams, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 ERROR (MainThread) [custom_components.shinobi.api.shinobi_api] Failed to load camera data: streamsSortedByType, Error: 'str' object has no attribute 'get', Line: 235 2021-09-15 10:30:32 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Initializing WS connection 2021-09-15 10:30:32 INFO (MainThread) [custom_components.shinobi.api.shinobi_websocket] Starting to listen connected 2021-09-15 10:30:32 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Connected, Message: {"sid":"21ENiEP5FmWk3AEfAAAC","upgrades":[],"pingInterval":25000,"pingTimeout":5000} 2021-09-15 10:30:32 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Back channel connected 2021-09-15 10:30:32 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Sending message, Data: 42["f", {"auth": "d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX", "f": "init", "ke": "7LBLsFrGWs", "uid": "EnVInSV6Ev"}], Connected: True 2021-09-15 10:30:32 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] WebSocket Connected 2021-09-15 10:30:32 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: users_online 2021-09-15 10:30:32 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: user_status_change 2021-09-15 10:30:32 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: diskUsed 2021-09-15 10:30:32 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: init_success 2021-09-15 10:30:35 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] No payload handler available, Payload: ['ping', {'beat': 1}] 2021-09-15 10:30:40 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: os 2021-09-15 10:30:43 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] No payload handler available, Payload: ['ping', {'beat': 1}] 2021-09-15 10:30:50 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Payload received, Type: os 2021-09-15 10:30:51 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] No payload handler available, Payload: ['ping', {'beat': 1}] 2021-09-15 10:30:55 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Pinging 2021-09-15 10:30:55 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Sending message, Data: 2, Connected: True 2021-09-15 10:30:55 DEBUG (MainThread) [custom_components.shinobi.api.shinobi_websocket] Pong received

Thanks for your time looking at this.

elad-bar commented 3 years ago

can you please post the JSON returns from the following URL: http://192.168.1.210:8080/d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX/monitor/7LBLsFrGWs

thanks

Eldoras commented 3 years ago

{ "mid": "5rJnIF5pLV", "ke": "7LBLsFrGWs", "name": "Front Porch", "shto": "[]", "shfr": "[]", "details": "{\"max_keep_days\":\"\",\"notes\":\"\",\"dir\":\"\",\"rtmp_key\":\"\",\"auto_host_enable\":\"1\",\"auto_host\":\"rtmp://admin:<redacted>@192.168.1.141/bcs/channel0_main.bcs?token=sdasdasd&channel=0&stream=0&user=admin&password=<redacted>\",\"rtsp_transport\":\"no\",\"muser\":\"admin\",\"mpass\":\"<redacted>\",\"port_force\":\"0\",\"fatal_max\":\"0\",\"skip_ping\":null,\"is_onvif\":\"1\",\"onvif_port\":\"\",\"primary_input\":\"0:0\",\"aduration\":\"1000000\",\"probesize\":\"1000000\",\"stream_loop\":\"0\",\"sfps\":\"10\",\"wall_clock_timestamp_ignore\":\"1\",\"accelerator\":\"0\",\"hwaccel\":\"auto\",\"hwaccel_vcodec\":\"\",\"hwaccel_device\":\"\",\"use_coprocessor\":null,\"stream_type\":\"hls\",\"stream_flv_type\":\"ws\",\"stream_flv_maxLatency\":\"\",\"stream_mjpeg_clients\":\"\",\"stream_vcodec\":\"copy\",\"stream_acodec\":\"aac\",\"hls_time\":\"2\",\"hls_list_size\":\"3\",\"preset_stream\":\"ultrafast\",\"stream_quality\":\"15\",\"stream_fps\":\"\",\"stream_scale_x\":\"\",\"stream_scale_y\":\"\",\"rotate_stream\":\"no\",\"signal_check\":\"10\",\"signal_check_log\":\"0\",\"svf\":\"\",\"tv_channel\":\"0\",\"tv_channel_id\":\"\",\"tv_channel_group_title\":\"\",\"stream_timestamp\":\"0\",\"stream_timestamp_font\":\"\",\"stream_timestamp_font_size\":\"\",\"stream_timestamp_color\":\"\",\"stream_timestamp_box_color\":\"\",\"stream_timestamp_x\":\"\",\"stream_timestamp_y\":\"\",\"stream_watermark\":\"0\",\"stream_watermark_location\":\"\",\"stream_watermark_position\":\"tr\",\"snap\":\"1\",\"snap_fps\":\"\",\"snap_scale_x\":\"960\",\"snap_scale_y\":\"720\",\"snap_vf\":\"\",\"vcodec\":\"copy\",\"crf\":\"1\",\"preset_record\":\"\",\"acodec\":\"no\",\"record_scale_y\":\"\",\"record_scale_x\":\"\",\"cutoff\":\"15\",\"rotate_record\":\"no\",\"vf\":\"\",\"timestamp\":\"0\",\"timestamp_font\":\"\",\"timestamp_font_size\":\"10\",\"timestamp_color\":\"white\",\"timestamp_box_color\":\"0x00000000@1\",\"timestamp_x\":\"(w-tw)/2\",\"timestamp_y\":\"0\",\"watermark\":\"0\",\"watermark_location\":\"\",\"watermark_position\":\"tr\",\"record_timelapse\":\"1\",\"record_timelapse_mp4\":null,\"record_timelapse_fps\":\"300\",\"record_timelapse_scale_x\":\"640\",\"record_timelapse_scale_y\":\"400\",\"record_timelapse_vf\":\"\",\"record_timelapse_watermark\":null,\"record_timelapse_watermark_location\":\"\",\"record_timelapse_watermark_position\":null,\"cust_input\":\"\",\"cust_stream\":\"\",\"cust_snap\":\"\",\"cust_record\":\"\",\"cust_detect\":\"\",\"cust_detect_object\":\"\",\"cust_sip_record\":\"\",\"custom_output\":\"\",\"detector\":\"1\",\"detector_http_api\":null,\"detector_send_frames\":\"1\",\"detector_fps\":\"\",\"detector_scale_x\":\"640\",\"detector_scale_y\":\"480\",\"detector_lock_timeout\":\"\",\"detector_save\":\"1\",\"detector_record_method\":\"sip\",\"detector_trigger\":\"0\",\"detector_trigger_record_fps\":\"\",\"detector_timeout\":\"10\",\"detector_send_video_length\":\"\",\"watchdog_reset\":\"0\",\"detector_delete_motionless_videos\":\"0\",\"det_multi_trig\":null,\"group_detector_multi\":\"\",\"detector_webhook\":\"0\",\"detector_webhook_url\":\"\",\"detector_webhook_method\":null,\"detector_command_enable\":\"0\",\"detector_command\":\"\",\"detector_command_timeout\":\"\",\"snap_seconds_inward\":\"\",\"detector_mail\":\"0\",\"detector_mail_timeout\":\"\",\"detector_discordbot\":null,\"detector_discordbot_send_video\":null,\"detector_discordbot_timeout\":\"\",\"use_detector_filters\":null,\"use_detector_filters_object\":null,\"cords\":\"{\\\"WvKWe\\\":{\\\"name\\\":\\\"Main\\\",\\\"sensitivity\\\":10,\\\"max_sensitivity\\\":\\\"\\\",\\\"threshold\\\":1,\\\"color_threshold\\\":9,\\\"points\\\":[[\\\"0\\\",\\\"47\\\"],[\\\"1\\\",\\\"284\\\"],[\\\"93\\\",\\\"321\\\"],[\\\"124\\\",\\\"478\\\"],[\\\"323\\\",\\\"477\\\"],[\\\"350\\\",\\\"259\\\"],[\\\"637\\\",\\\"240\\\"],[\\\"639\\\",\\\"59\\\"],[\\\"554\\\",\\\"34\\\"],[\\\"557\\\",\\\"78\\\"],[\\\"508\\\",\\\"71\\\"],[\\\"516\\\",\\\"25\\\"],[\\\"451\\\",\\\"12\\\"],[\\\"361\\\",\\\"4\\\"],[\\\"247\\\",\\\"5\\\"],[\\\"111\\\",\\\"19\\\"]]}}\",\"detector_filters\":\"\",\"detector_pam\":\"1\",\"detector_sensitivity\":\"\",\"detector_max_sensitivity\":\"\",\"detector_threshold\":\"1\",\"detector_color_threshold\":\"\",\"detector_frame\":\"0\",\"detector_noise_filter\":null,\"detector_noise_filter_range\":\"\",\"detector_notrigger\":\"0\",\"detector_notrigger_mail\":\"0\",\"detector_notrigger_discord\":null,\"detector_notrigger_timeout\":\"\",\"detector_notrigger_webhook\":null,\"detector_notrigger_webhook_url\":\"\",\"detector_notrigger_webhook_method\":null,\"detector_notrigger_command_timeout\":\"\",\"detector_notrigger_command_enable\":null,\"detector_notrigger_command\":\"\",\"detector_audio\":null,\"detector_audio_min_db\":\"\",\"detector_audio_max_db\":\"\",\"detector_use_detect_object\":\"0\",\"detector_send_frames_object\":null,\"detector_obj_count_in_region\":null,\"detector_obj_region\":null,\"detector_use_motion\":\"1\",\"detector_fps_object\":\"\",\"detector_scale_x_object\":\"\",\"detector_scale_y_object\":\"\",\"detector_lisence_plate\":\"0\",\"detector_lisence_plate_country\":\"us\",\"detector_buffer_vcodec\":\"copy\",\"detector_buffer_acodec\":\"aac\",\"detector_buffer_fps\":\"\",\"detector_buffer_hls_time\":\"\",\"detector_buffer_hls_list_size\":\"\",\"detector_buffer_start_number\":\"\",\"detector_buffer_live_start_index\":\"\",\"control\":\"0\",\"control_base_url\":\"\",\"control_url_method\":null,\"control_digest_auth\":null,\"control_stop\":\"0\",\"control_url_stop_timeout\":\"\",\"detector_ptz_follow\":null,\"detector_ptz_follow_target\":\"\",\"detector_obj_count\":null,\"control_url_center\":\"\",\"control_url_left\":\"\",\"control_url_left_stop\":\"\",\"control_url_right\":\"\",\"control_url_right_stop\":\"\",\"control_url_up\":\"\",\"control_url_up_stop\":\"\",\"control_url_down\":\"\",\"control_url_down_stop\":\"\",\"control_url_enable_nv\":\"\",\"control_url_disable_nv\":\"\",\"control_url_zoom_out\":\"\",\"control_url_zoom_out_stop\":\"\",\"control_url_zoom_in\":\"\",\"control_url_zoom_in_stop\":\"\",\"groups\":\"[]\",\"loglevel\":\"warning\",\"sqllog\":\"0\",\"detector_cascades\":\"\",\"stream_channels\":\"\",\"input_maps\":\"\",\"input_map_choices\":\"\"}", "type": "h264", "ext": "mp4", "protocol": "rtmp", "host": "192.168.1.141", "path": "/bcs/channel0_main.bcs?token=sdasdasd&channel=0&stream=0&user=admin&password=<redacted>", "port": 554, "fps": 1, "mode": "record", "width": 640, "height": 480, "currentlyWatching": 0, "currentCpuUsage": 0, "status": "Recording", "snapshot": "/d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX/jpeg/7LBLsFrGWs/5rJnIF5pLV/s.jpg", "streams": [ "/d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX/hls/7LBLsFrGWs/5rJnIF5pLV/s.m3u8" ], "streamsSortedByType": { "hls": [ "/d0rBxaU7JM2fcyGiRQfPT3pI9j9xBX/hls/7LBLsFrGWs/5rJnIF5pLV/s.m3u8" ] } }

elad-bar commented 3 years ago

Is there a chance tgat you have just 1 camera? JSON supposed to return a list, not an object

Eldoras commented 3 years ago

yeah only one camera hooked up right now

elad-bar commented 3 years ago

probably that's the issue, will reproduce it on my environment and will release a fix

thanks

elad-bar commented 3 years ago

@Eldoras, release new version v1.1.12, if it's not working, please reopen and share the logs

thanks

Eldoras commented 3 years ago

Works perfect. Thanks for looking at it for me.