Vzlogger: add scale
This commit is contained in:
parent
c15e8b9782
commit
f15c6b187b
2 changed files with 20 additions and 0 deletions
|
|
@ -11,9 +11,21 @@ params:
|
|||
default: 8081
|
||||
- name: uuid
|
||||
required: true
|
||||
- name: scale
|
||||
advanced: true
|
||||
default: 1
|
||||
description:
|
||||
de: Skalierungsfaktor
|
||||
en: Scale factor
|
||||
help:
|
||||
de: Multipliziere Rohwert mit diesem Faktor
|
||||
en: Multiply by this value
|
||||
render: |
|
||||
type: custom
|
||||
power: # power reading
|
||||
source: http # use http plugin
|
||||
uri: http://{{ .host }}:{{ .port }}/
|
||||
jq: .data[] | select(.uuid=="{{ .uuid }}") | .tuples[0][1] # parse response json
|
||||
{{- if .scale }}
|
||||
scale: {{ .scale }}
|
||||
{{- end }}
|
||||
|
|
|
|||
|
|
@ -10,3 +10,11 @@ render:
|
|||
host: 192.0.2.2 # IP-Adresse oder Hostname
|
||||
port: 8081 # Port # Optional
|
||||
uuid:
|
||||
advanced: |
|
||||
type: template
|
||||
template: vzlogger
|
||||
usage: grid
|
||||
host: 192.0.2.2 # IP-Adresse oder Hostname
|
||||
port: 8081 # Port # Optional
|
||||
uuid:
|
||||
scale: 1 # Multipliziere Rohwert mit diesem Faktor # Optional
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue