2 Commits

Author SHA1 Message Date
mikkeli 436e55a0c5 alarm image persist for 1 second longer 2026-02-16 23:42:16 +09:00
Mikkeli Matlock 776aee18fc pi gitignore 2026-02-16 23:35:09 +09:00
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -5,5 +5,5 @@ __pycache__/
*.pyc *.pyc
# configs # configs
./configs/ config/
!configs/alarms.sample.json !config/alarms.sample.json
+2
View File
@@ -93,6 +93,8 @@ async def handler(ws):
await send_status_image(ws, current_img) await send_status_image(ws, current_img)
await stream_alarm(ws, alarm["pcm"], alarm["sr"], await stream_alarm(ws, alarm["pcm"], alarm["sr"],
alarm["ch"], alarm["bits"]) alarm["ch"], alarm["bits"])
# let the image persist a bit more
await asyncio.sleep(1)
current_img = img_idle current_img = img_idle
await send_status_image(ws, current_img) await send_status_image(ws, current_img)