| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- # ============================================================
- # 盐城 水厂配置文件
- # ============================================================
- # 使用方法:python tool/migrate_yaml_to_db.py --yaml 本文件路径 --force
- # ============================================================
- plants:
- - name: 盐城 # 水厂名称
- enabled: true
- project_id: 1497 # 平台项目 ID
- # 流量 PLC 映射
- flow_plc:
- RO1总进水流量: ns=3;s=RO1_TOTAL_JSLL
- RO2总进水流量: ns=3;s=RO2_TOTAL_JSLL
- # 泵状态 PLC 点位
- pump_status_plc:
- 高压泵: # pump_name
- - point: ns=6;s=P_1#ROGYB_RFB
- name: 1#RO高压泵
- - point: ns=6;s=P_2#ROGYB_RFB
- name: 2#RO高压泵
- # RTSP 拾音器流
- rtsp_streams:
- - name: 8#一层高压泵区域 # 显示名称
- url: rtsp://rtsp:newwater123@192.168.70.11:31016/cam/realmonitor?channel=8&subtype=0
- channel: 8
- device_code: YC-8 # 设备编码
- pump_name: 高压泵 # 关联泵名称
- # ----------------------------------------------------------
- # 以下为系统级配置(各水厂通用,一般不需要修改)
- # ----------------------------------------------------------
- audio:
- sample_rate: 16000
- file_duration: 60
- segment_duration: 60
- auto_cleanup:
- enabled: true
- delete_normal: true
- keep_recent_count: 100
- prediction:
- batch_size: 64
- check_interval: 1.0
- default_threshold: 0.01
- voting:
- enabled: true
- window_size: 5
- threshold: 3
- frequency_history:
- enabled: true
- history_minutes: 10
- energy_detection:
- enabled: true
- skip_when_stopped: true
- save_anomaly_audio:
- enabled: true
- save_dir: data/anomaly_detected
- cooldown_minutes: 15
- context_capture:
- enabled: true
- pre_minutes: 2
- post_minutes: 2
- push_notification:
- enabled: true
- alert_enabled: false
- push_base_urls:
- - label: "外网"
- url: "http://120.55.44.4:8900/api/v1/dumu/push-msg"
- - label: "内网"
- url: "http://192.168.60.8:8900/api/v1/dumu/push-msg"
- timeout: 30
- retry_count: 2
- cooldown_minutes: 15
- cooldown_same_type_hours: 24
- cooldown_diff_type_hours: 1
- alert_aggregate:
- enabled: true
- window_seconds: 300
- min_devices: 2
- scada_api:
- enabled: true
- base_url: http://120.55.44.4:8900/api/v1/jinke-cloud/db/device/history-data
- realtime_url: http://47.96.12.136:8788/api/v1/jinke-cloud/device/current-data
- jwt_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6NywiVXNlcm5hbWUiOiJhZG1pbiIsIkRlcCI6IjEzNSIsImV4cCI6MTc3NjExOTExNCwiaXNzIjoiZ2luLWJsb2cifQ.0HTtzHZjyd2mHo8VCy8icYROxmntRMuQhyoZsAYRL_M
- timeout: 10
- human_detection:
- enabled: false
- db_path: /data/human_detector/detection_status.db
- cooldown_minutes: 5
|