From 0f6590c72006c3b00cbc67ba9ec581ca404973cb Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 6 Mar 2026 21:49:51 +0100 Subject: [PATCH] float fix 4 --- src/udi/handlers/car/car.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/udi/handlers/car/car.go b/src/udi/handlers/car/car.go index ba042a9..08d645b 100644 --- a/src/udi/handlers/car/car.go +++ b/src/udi/handlers/car/car.go @@ -34,20 +34,20 @@ type CarHandler struct { */ type CarValue struct { - Status string `unit:"" json:"status"` - Timestamp string `unit:"" json:"timestamp"` - VoltageL1 float32 `unit:"V" json:"voltageL1"` - VoltageL2 float32 `unit:"V" json:"voltageL2"` - VoltageL3 float32 `unit:"V" json:"voltageL3"` - CurrentL1 float32 `unit:"A" json:"currentL1"` - CurrentL2 float32 `unit:"A" json:"currentL2"` - CurrentL3 float32 `unit:"A" json:"currentL3"` - PowerL1 float32 `unit:"W" json:"powerL1"` - PowerL2 float32 `unit:"W" json:"powerL2"` - PowerL3 float32 `unit:"W" json:"powerL3"` - TotalImportEnergy float32 `unit:"Wh" json:"totalImportEnergy"` - TotalExportEnergy float32 `unit:"Wh" json:"totalExportEnergy"` - Cnt int `unit:"" json:"cnt"` + Status string `unit:"" json:"status"` + Timestamp string `unit:"" json:"timestamp"` + VoltageL1 float32 `unit:"V" json:"voltageL1"` + VoltageL2 float32 `unit:"V" json:"voltageL2"` + VoltageL3 float32 `unit:"V" json:"voltageL3"` + CurrentL1 float32 `unit:"A" json:"currentL1"` + CurrentL2 float32 `unit:"A" json:"currentL2"` + CurrentL3 float32 `unit:"A" json:"currentL3"` + PowerL1 float32 `unit:"W" json:"powerL1"` + PowerL2 float32 `unit:"W" json:"powerL2"` + PowerL3 float32 `unit:"W" json:"powerL3"` + TotalImportEnergy float32 `unit:"Wh" json:"totalImportEnergy"` + TotalExportEnergy float32 `unit:"Wh" json:"totalExportEnergy"` + Cnt int `unit:"" json:"cnt"` } func New(id string, config config.HandlerConfigT) handler.Handler {