This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user