Volkszaehler: fix uuids starting with 0
This commit is contained in:
parent
f78913eae5
commit
4e9a30ef84
1 changed files with 4 additions and 4 deletions
|
|
@ -25,16 +25,16 @@ render: |
|
|||
add:
|
||||
- source: http # import channel
|
||||
{{- if .host }}
|
||||
uri: http://{{ .host }}:{{ .port }}/api/data/{{ .importuuid }}.json?from=now
|
||||
uri: http://{{ .host }}:{{ .port }}/api/data/{{ trimAll "'" .importuuid }}.json?from=now
|
||||
{{ else }}
|
||||
uri: {{ trimSuffix "/" .url }}/{{ .importuuid }}.json?from=now
|
||||
uri: {{ trimSuffix "/" .url }}/{{ trimAll "'" .importuuid }}.json?from=now
|
||||
{{- end }}
|
||||
jq: .data.tuples[0][1] # parse response json
|
||||
- source: http # export channel
|
||||
{{- if .host }}
|
||||
uri: http://{{ .host }}:{{ .port }}/api/data/{{ .exportuuid }}.json?from=now
|
||||
uri: http://{{ .host }}:{{ .port }}/api/data/{{ trimAll "'" .exportuuid }}.json?from=now
|
||||
{{ else }}
|
||||
uri: {{ trimSuffix "/" .url }}/{{ .exportuuid }}.json?from=now
|
||||
uri: {{ trimSuffix "/" .url }}/{{ trimAll "'" .exportuuid }}.json?from=now
|
||||
{{- end }}
|
||||
jq: .data.tuples[0][1] # parse response json
|
||||
scale: -1 # export must result in negative values
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue