RCT: make port configurable (#27609)
This commit is contained in:
parent
cacdfab155
commit
391cf4defa
2 changed files with 5 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ func NewRCTFromConfig(ctx context.Context, other map[string]any) (api.Meter, err
|
|||
}
|
||||
|
||||
// NewRCT creates an RCT meter
|
||||
func NewRCT(ctx context.Context, uri, usage string, batterySocLimits batterySocLimits, batteryPowerLimits batteryPowerLimits, cache time.Duration, externalPower bool, capacity float64, capacity2 float64) (api.Meter, error) {
|
||||
func NewRCT(ctx context.Context, uri, usage string, batterySocLimits batterySocLimits, batteryPowerLimits batteryPowerLimits, cache time.Duration, externalPower bool, capacity, capacity2 float64) (api.Meter, error) {
|
||||
log := util.NewLogger("rct")
|
||||
|
||||
// re-use connections
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@ params:
|
|||
- name: usage
|
||||
choice: ["grid", "pv", "battery"]
|
||||
- name: host
|
||||
- name: port
|
||||
default: 8899
|
||||
advanced: true
|
||||
- name: externalpower
|
||||
type: bool
|
||||
description:
|
||||
|
|
@ -38,7 +41,7 @@ params:
|
|||
default: 30s
|
||||
render: |
|
||||
type: rct
|
||||
uri: {{ .host }}
|
||||
uri: {{ .host }}:{{ .port }}
|
||||
usage: {{ .usage }}
|
||||
cache: {{ .cache }}
|
||||
{{- include "battery-params" . }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue