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 {