chore: simplify
This commit is contained in:
parent
2fb046d714
commit
97ac1eec3f
1 changed files with 2 additions and 2 deletions
|
|
@ -18,8 +18,8 @@ render: |
|
|||
power:
|
||||
source: http
|
||||
uri: http://{{ .host }}/solar_api/v1/GetPowerFlowRealtimeData.fcgi
|
||||
jq: if .Body.Data.Smartloads.Ohmpilots."{{ .key }}".P_AC_Total == null then 0 else .Body.Data.Smartloads.Ohmpilots."{{ .key }}".P_AC_Total end
|
||||
jq: if .Body.Data.Smartloads.Ohmpilots.{{ .key }}.P_AC_Total == null then 0 else .Body.Data.Smartloads.Ohmpilots.{{ .key }}.P_AC_Total end
|
||||
soc:
|
||||
source: http
|
||||
uri: http://{{ .host }}/solar_api/v1/GetPowerFlowRealtimeData.fcgi
|
||||
jq: if .Body.Data.Smartloads.Ohmpilots."{{ .key }}".Temperature == null then 0 else .Body.Data.Smartloads.Ohmpilots."{{ .key }}".Temperature end
|
||||
jq: if .Body.Data.Smartloads.Ohmpilots.{{ .key }}.Temperature == null then 0 else .Body.Data.Smartloads.Ohmpilots.{{ .key }}.Temperature end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue