From 4e9a30ef8492af9ff7611ebe54983747959822b6 Mon Sep 17 00:00:00 2001 From: andig Date: Fri, 5 Apr 2024 10:44:22 +0200 Subject: [PATCH] Volkszaehler: fix uuids starting with 0 --- templates/definition/meter/volkszaehler-importexport.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/definition/meter/volkszaehler-importexport.yaml b/templates/definition/meter/volkszaehler-importexport.yaml index 52a6be67a..d60e54f08 100644 --- a/templates/definition/meter/volkszaehler-importexport.yaml +++ b/templates/definition/meter/volkszaehler-importexport.yaml @@ -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