添加温度报警事件推送间隔
This commit is contained in:
@ -76,7 +76,8 @@ async def handle_event_detail(event_detail: dict, config: dict, redis: Redis):
|
||||
# 如果事件类型为区域入侵或吸烟or打电话
|
||||
if event_type == 131588 or event_type == 422400002:
|
||||
await redis.set(name=f"hik-push-interval:{device_name}:{event_type}", value=event_detail["happenTime"], ex=80)
|
||||
|
||||
elif event_type == 192518 or event_type == 192517:
|
||||
await redis.set(name=f"hik-push-interval:{device_name}:{event_type}", value=event_detail["happenTime"], ex=60)
|
||||
# 添加regionName
|
||||
if "srcName" in event_detail:
|
||||
event_detail["regionName"] = event_detail["srcName"]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "hik-push"
|
||||
version = "1.1.0"
|
||||
version = "1.2.0"
|
||||
description = ""
|
||||
authors = ["quantulr <35954003+quantulr@users.noreply.github.com>"]
|
||||
readme = "README.md"
|
||||
|
Reference in New Issue
Block a user