Guest User

Untitled

a guest
Feb 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.25 KB | None | 0 0
  1.  2:
  2.     name:  "380V"
  3.     description: ""
  4.     value_count: 10
  5.     timeout:   15
  6.     metrics:
  7.        -
  8.             id: "metric-2"
  9.             label: :voltage_380_fase_1
  10.             unit: "V"
  11.             visible: false
  12.             type:  :simple
  13.             position: 2
  14.         -
  15.             id: "metric-3"
  16.             label: :current_380_fase_1
  17.             unit: "A"
  18.             visible: false
  19.             type:  :simple
  20.             position: 3
  21.         -   id: "metric-9"
  22.             label: :power_fase_1
  23.             unit: "W"
  24.             visible: true
  25.             type:  :composite
  26.             compute: "function(args){return args[2]*args[3]}"
  27.         -
  28.             id: "metric-4"
  29.             label: :voltage_380_fase_2
  30.             unit: "V"
  31.             visible: false
  32.             type:  :simple
  33.             position: 4
  34.         -
  35.             id: "metric-5"
  36.             label: :current_380_fase_2
  37.             unit: "A"
  38.             visible: false
  39.             type:  :simple
  40.             position: 5
  41.         -   id: "metric-10"
  42.             label: :power_fase_2
  43.             unit: "W"
  44.             visible: true
  45.             type:  :composite
  46.             compute: "function(args){return args[4]*args[5]}"
  47.         -
  48.             id: "metric-6"
  49.             label: :voltage_380_fase_3
  50.             unit: "V"
  51.             visible: false
  52.             type:  :simple
  53.             position: 6
  54.         -
  55.             id: "metric-7"
  56.             label: :current_380_fase_3
  57.             unit: "A"
  58.             visible: false
  59.             type:  :simple
  60.             position: 7
  61.         -   id: "metric-11"
  62.             label: :power_fase_3
  63.             unit: "W"
  64.             visible: true
  65.             type:  :composite
  66.             compute: "function(args){return args[6]*args[7]}"
  67.         -
  68.             id: "metric-8"
  69.             label: :luminosity
  70.             unit: ""
  71.             visible: false
  72.             type:  :simple
  73.             position: 9
  74.         -   id: "metric-12"
  75.             label: :power
  76.             unit: "W"
  77.             visible: true
  78.             type:  :composite
  79.             compute: "function(args){return (args[2]/Math.sqrt(3))*args[3]*0.9+(args[4]/Math.sqrt(3))*args[5]*0.9+(args[6]/Math.sqrt(3))*args[7]*0.9 }"
Add Comment
Please, Sign In to add comment