This commit is contained in:
@@ -34,20 +34,20 @@ type CarHandler struct {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
type CarValue struct {
|
type CarValue struct {
|
||||||
Status string `unit:"" json:"status"`
|
Status string `unit:"" json:"status"`
|
||||||
Timestamp string `unit:"" json:"timestamp"`
|
Timestamp string `unit:"" json:"timestamp"`
|
||||||
VoltageL1 float32 `unit:"V" json:"voltageL1"`
|
VoltageL1 float32 `unit:"V" json:"voltageL1"`
|
||||||
VoltageL2 float32 `unit:"V" json:"voltageL2"`
|
VoltageL2 float32 `unit:"V" json:"voltageL2"`
|
||||||
VoltageL3 float32 `unit:"V" json:"voltageL3"`
|
VoltageL3 float32 `unit:"V" json:"voltageL3"`
|
||||||
CurrentL1 float32 `unit:"A" json:"currentL1"`
|
CurrentL1 float32 `unit:"A" json:"currentL1"`
|
||||||
CurrentL2 float32 `unit:"A" json:"currentL2"`
|
CurrentL2 float32 `unit:"A" json:"currentL2"`
|
||||||
CurrentL3 float32 `unit:"A" json:"currentL3"`
|
CurrentL3 float32 `unit:"A" json:"currentL3"`
|
||||||
PowerL1 float32 `unit:"W" json:"powerL1"`
|
PowerL1 float32 `unit:"W" json:"powerL1"`
|
||||||
PowerL2 float32 `unit:"W" json:"powerL2"`
|
PowerL2 float32 `unit:"W" json:"powerL2"`
|
||||||
PowerL3 float32 `unit:"W" json:"powerL3"`
|
PowerL3 float32 `unit:"W" json:"powerL3"`
|
||||||
TotalImportEnergy float32 `unit:"Wh" json:"totalImportEnergy"`
|
TotalImportEnergy float32 `unit:"Wh" json:"totalImportEnergy"`
|
||||||
TotalExportEnergy float32 `unit:"Wh" json:"totalExportEnergy"`
|
TotalExportEnergy float32 `unit:"Wh" json:"totalExportEnergy"`
|
||||||
Cnt int `unit:"" json:"cnt"`
|
Cnt int `unit:"" json:"cnt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func New(id string, config config.HandlerConfigT) handler.Handler {
|
func New(id string, config config.HandlerConfigT) handler.Handler {
|
||||||
|
|||||||
Reference in New Issue
Block a user