RCT: make port configurable (#27609)

This commit is contained in:
Marc Mueller 2026-02-22 16:10:20 +01:00 • committed by GitHub
parent cacdfab155
commit 391cf4defa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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" . }}