From 739099257f881ea72cbf0392b2208c4f9d7bd303 Mon Sep 17 00:00:00 2001 From: Ryan McGuire Date: Sat, 4 Jul 2026 17:25:32 -0400 Subject: [PATCH] update values --- helm/values.yaml | 2 +- pkg/config/custom.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/values.yaml b/helm/values.yaml index 26eb9f2..88072bf 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -6,7 +6,7 @@ hull: # Custom app config # NOTE: Prefer supplying econetPassword via the ECONET_PASSWORD env var econetEmail: "" - costPerKWH: 0.0 + costPerKWH: 0.19 usageInterval: 5m # go-app config name: econet-exporter diff --git a/pkg/config/custom.go b/pkg/config/custom.go index 2a4028c..eaa8856 100644 --- a/pkg/config/custom.go +++ b/pkg/config/custom.go @@ -25,7 +25,7 @@ type ServiceConfig struct { // CostPerKWH is the electricity price in US dollars per kWh (e.g. 0.18 // means 18 cents/kWh, NOT 18). It derives the econet_energy_cost_dollars // metric from kWh energy usage. - CostPerKWH float64 `yaml:"costPerKWH" json:"costPerKWH,omitempty" env:"ECONET_COST_PER_KWH"` + CostPerKWH float64 `yaml:"costPerKWH" json:"costPerKWH,omitempty" env:"ECONET_COST_PER_KWH" default:"0.19"` // UsageInterval controls how often energy/water usage history is polled. UsageInterval time.Duration `yaml:"usageInterval" json:"usageInterval,omitempty" env:"ECONET_USAGE_INTERVAL"`