增减数量超限报警功能

This commit is contained in:
martin 2026-04-23 17:05:29 +08:00
parent 0b283f6b8c
commit 9720a07683
2 changed files with 15 additions and 7 deletions

View File

@ -3571,7 +3571,8 @@ async def send_frame_to_s3_mq(loop,upload_executor,task_id, mqtt, mqtt_topic, ca
"count_message":count_message,
"high_count_warn":{
"high_count_warn_status":high_count_warn_status,
"high_count_warn_num":high_count_warn_num
"high_count_warn_num":high_count_warn_num,
"high_count_warn":high_count_warn
},
"des_location":des_location_result
}

View File

@ -54,16 +54,23 @@ service_status = {"is_healthy": True, "last_error": None, "error_time": None}
# "user": "postgres",
# "password": "root"
# }
#
# DB_CONFIG = {
# "dbname": "smart_dev_123",
# "user": "postgres",
# "password": "root",
# "host": "8.137.54.85",
# "port": "5060"
# }
#正式数据库
DB_CONFIG = {
"dbname": "smart_dev_123",
"dbname": "smart_dev",
"user": "postgres",
"password": "root",
"host": "8.137.54.85",
"port": "5060"
"password": "StrongPassword@123",
"host": "222.212.85.86",
"port": "5061"
}
# 什邡数据库
# DB_CONFIG = {
# "dbname": "postgres",