Skip to content

Commit 31de65f

Browse files
authored
Merge pull request #289 from fronzbot/add-liveview
Add get_liveview command to camera module
2 parents b029c32 + fd2e4ed commit 31de65f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: blinkpy/camera.py

+7
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ def update(self, config, force_cache=False, **kwargs):
178178
self.sync.blink, url=self.clip, stream=True, json=False
179179
)
180180

181+
def get_liveview(self):
182+
"""Get livewview rtsps link."""
183+
response = api.request_camera_liveview(
184+
self.sync.blink, self.sync.network_id, self.camera_id
185+
)
186+
return response["server"]
187+
181188
def image_to_file(self, path):
182189
"""
183190
Write image to file.

0 commit comments

Comments
 (0)