Compare commits
2 Commits
41e0a6b81d
...
pi/general
| Author | SHA1 | Date | |
|---|---|---|---|
| 436e55a0c5 | |||
|
|
776aee18fc |
4
pi/.gitignore
vendored
4
pi/.gitignore
vendored
@@ -5,5 +5,5 @@ __pycache__/
|
|||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
# configs
|
# configs
|
||||||
./configs/
|
config/
|
||||||
!configs/alarms.sample.json
|
!config/alarms.sample.json
|
||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user