projects
/
python_utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ca1a7b
)
Hacky fix for inconsistently named camera.
author
Scott Gasch
<
[email protected]
>
Mon, 15 Aug 2022 17:36:47 +0000
(10:36 -0700)
committer
Scott Gasch
<
[email protected]
>
Mon, 15 Aug 2022 17:36:47 +0000
(10:36 -0700)
camera_utils.py
patch
|
blob
|
history
diff --git
a/camera_utils.py
b/camera_utils.py
index c2bd04da0adccdb439711e3df6fdacf700d92e84..63ab7f813eeb16f76da2f4589469e1f8b414b189 100644
(file)
--- a/
camera_utils.py
+++ b/
camera_utils.py
@@
-174,6
+174,8
@@
def _fetch_camera_image(camera_name: str, *, width: int = 256, quality: int = 70
"""Fetch a webcam image given the camera name."""
logger.debug("Trying to fetch camera image from video server")
+ if camera_name == 'frontdoor':
+ camera_name = 'front_door'
raw = fetch_camera_image_from_video_server(camera_name, width=width, quality=quality)
if raw is None:
logger.debug("Reading from video server failed; trying direct RTSP stream")