mirror of
https://github.com/jdejaegh/irm-kmi-ha.git
synced 2025-06-27 03:35:56 +02:00
Adjust camera settings
This commit is contained in:
parent
0eb96a63bf
commit
dcb4f09793
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ class IrmKmiRadar(CoordinatorEntity, Camera):
|
||||||
@property
|
@property
|
||||||
def frame_interval(self) -> float:
|
def frame_interval(self) -> float:
|
||||||
"""Return the interval between frames of the mjpeg stream."""
|
"""Return the interval between frames of the mjpeg stream."""
|
||||||
return 20
|
return 1
|
||||||
|
|
||||||
def camera_image(self,
|
def camera_image(self,
|
||||||
width: int | None = None,
|
width: int | None = None,
|
||||||
|
@ -66,7 +66,7 @@ class IrmKmiRadar(CoordinatorEntity, Camera):
|
||||||
|
|
||||||
async def handle_async_still_stream(self, request: web.Request, interval: float) -> web.StreamResponse:
|
async def handle_async_still_stream(self, request: web.Request, interval: float) -> web.StreamResponse:
|
||||||
"""Generate an HTTP MJPEG stream from camera images."""
|
"""Generate an HTTP MJPEG stream from camera images."""
|
||||||
self._image_index = 0
|
self._image_index = False
|
||||||
return await async_get_still_stream(request, self.get_animated_svg, self.content_type, interval)
|
return await async_get_still_stream(request, self.get_animated_svg, self.content_type, interval)
|
||||||
|
|
||||||
async def handle_async_mjpeg_stream(self, request: web.Request) -> web.StreamResponse:
|
async def handle_async_mjpeg_stream(self, request: web.Request) -> web.StreamResponse:
|
||||||
|
|
Loading…
Add table
Reference in a new issue