fronzbot / blinkpy

A Python library for the Blink Camera system
MIT License
587 stars 121 forks source link

Fix arguments to wait_for_command in request_camera_liveview #979

Closed harveypham closed 1 week ago

harveypham commented 3 months ago

Description:

Prepare a correct json package for wait_for_command inside request_camera_liveview

Related issue (if applicable): fixes #

Checklist:

mkmer commented 3 months ago

Have you found a way to play the live view link? To this point I'm not aware of a program that plays back the link.

harveypham commented 3 months ago

@mkmer No luck yet. After properly waited for liveview command, this is the result that I get:

{'complete': True, 'status': 1, 'status_msg': 'Live view failed', 'status_code': 523, 'commands': [{'id': 843305822, 'created_at': '2024-08-14T22:13:56+00:00', 'updated_at': '2024-08-14T22:13:58+00:00', 'deleted_at': None, 'execute_time': '2024-08-14T22:13:56+00:00', 'command': 'lv_relay', 'state_stage': 'dev', 'stage_rest': '2024-08-14T22:13:56+00:00', 'stage_cs_db': '2024-08-14T22:13:56+00:00', 'stage_cs_sent': '2024-08-14T22:13:57+00:00', 'stage_sm': '2024-08-14T22:13:57+00:00', 'stage_dev': '2024-08-14T22:13:58+00:00', 'stage_is': None, 'stage_lv': '2024-08-14T22:14:29+00:00', 'stage_vs': None, 'state_condition': 'error', 'sm_ack': 1, 'lfr_ack': 0, 'sequence': 739, 'attempts': 0, 'transaction': 'uEGGujbDEZeIAN72', 'player_transaction': 'JXBZoZMdKKkLxGQv', 'server': 'rtsps://lv3-u018.immedia-semi.com:443/uEGGujbDEZeIAN72', 'duration': 0, 'by_whom': 'Computer - ', 'diagnostic': False, 'debug': '{"lfr_ok":[16212,2,739,210,137,156,195,0]},LV906', 'opts_1': 0, 'target': 'camera', 'target_id': 11827, 'trace_parent': None, 'sync_module_id': 10737, 'parent_command_id': None, 'camera_id': 11827, 'siren_id': None, 'firmware_id': None, 'network_id': 16212, 'account_id': 15211}], 'media_id': None}

mkmer commented 3 months ago

So now all you need to do is connect to the rtsps: address, but i have yet to find a video player that knows how to connect to a secure rtsp link. Maybe you will have some luck.

github-actions[bot] commented 2 weeks ago

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.