rtsp_config_yancheng.yaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # ============================================================
  2. # 盐城 水厂配置文件
  3. # ============================================================
  4. # 使用方法:python tool/migrate_yaml_to_db.py --yaml 本文件路径 --force
  5. # ============================================================
  6. plants:
  7. - name: 盐城 # 水厂名称
  8. enabled: true
  9. project_id: 1497 # 平台项目 ID
  10. # 流量 PLC 映射
  11. flow_plc:
  12. RO1总进水流量: ns=3;s=RO1_TOTAL_JSLL
  13. RO2总进水流量: ns=3;s=RO2_TOTAL_JSLL
  14. # 泵状态 PLC 点位
  15. pump_status_plc:
  16. 高压泵: # pump_name
  17. - point: ns=6;s=P_1#ROGYB_RFB
  18. name: 1#RO高压泵
  19. - point: ns=6;s=P_2#ROGYB_RFB
  20. name: 2#RO高压泵
  21. # RTSP 拾音器流
  22. rtsp_streams:
  23. - name: 8#一层高压泵区域 # 显示名称
  24. url: rtsp://rtsp:newwater123@192.168.70.11:31016/cam/realmonitor?channel=8&subtype=0
  25. channel: 8
  26. device_code: YC-8 # 设备编码
  27. pump_name: 高压泵 # 关联泵名称
  28. # ----------------------------------------------------------
  29. # 以下为系统级配置(各水厂通用,一般不需要修改)
  30. # ----------------------------------------------------------
  31. audio:
  32. sample_rate: 16000
  33. file_duration: 60
  34. segment_duration: 60
  35. auto_cleanup:
  36. enabled: true
  37. delete_normal: true
  38. keep_recent_count: 100
  39. prediction:
  40. batch_size: 64
  41. check_interval: 1.0
  42. default_threshold: 0.01
  43. voting:
  44. enabled: true
  45. window_size: 5
  46. threshold: 3
  47. frequency_history:
  48. enabled: true
  49. history_minutes: 10
  50. energy_detection:
  51. enabled: true
  52. skip_when_stopped: true
  53. save_anomaly_audio:
  54. enabled: true
  55. save_dir: data/anomaly_detected
  56. cooldown_minutes: 15
  57. context_capture:
  58. enabled: true
  59. pre_minutes: 2
  60. post_minutes: 2
  61. push_notification:
  62. enabled: true
  63. alert_enabled: false
  64. push_base_urls:
  65. - label: "外网"
  66. url: "http://120.55.44.4:8900/api/v1/dumu/push-msg"
  67. - label: "内网"
  68. url: "http://192.168.60.8:8900/api/v1/dumu/push-msg"
  69. timeout: 30
  70. retry_count: 2
  71. cooldown_minutes: 15
  72. cooldown_same_type_hours: 24
  73. cooldown_diff_type_hours: 1
  74. alert_aggregate:
  75. enabled: true
  76. window_seconds: 300
  77. min_devices: 2
  78. scada_api:
  79. enabled: true
  80. base_url: http://120.55.44.4:8900/api/v1/jinke-cloud/db/device/history-data
  81. realtime_url: http://47.96.12.136:8788/api/v1/jinke-cloud/device/current-data
  82. jwt_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6NywiVXNlcm5hbWUiOiJhZG1pbiIsIkRlcCI6IjEzNSIsImV4cCI6MTc3NjExOTExNCwiaXNzIjoiZ2luLWJsb2cifQ.0HTtzHZjyd2mHo8VCy8icYROxmntRMuQhyoZsAYRL_M
  83. timeout: 10
  84. human_detection:
  85. enabled: false
  86. db_path: /data/human_detector/detection_status.db
  87. cooldown_minutes: 5