rtsp_config_jianding.yaml 2.7 KB

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