adds counter for total WH consumed
This commit is contained in:
@@ -68,23 +68,23 @@ type SysInfo struct {
|
||||
} `json:"system"`
|
||||
Emeter struct {
|
||||
GetRealtime struct {
|
||||
CurrentMa int `json:"current_ma"`
|
||||
VoltageMv int `json:"voltage_mv"`
|
||||
PowerMw int `json:"power_mw"`
|
||||
TotalWh int `json:"total_wh"`
|
||||
ErrCode int `json:"err_code"`
|
||||
CurrentMa float64 `json:"current_ma"`
|
||||
VoltageMv float64 `json:"voltage_mv"`
|
||||
PowerMw float64 `json:"power_mw"`
|
||||
TotalWh float64 `json:"total_wh"`
|
||||
ErrCode float64 `json:"err_code"`
|
||||
} `json:"get_realtime"`
|
||||
GetVgainIgain struct {
|
||||
Vgain int `json:"vgain"`
|
||||
Igain int `json:"igain"`
|
||||
Vgain float64 `json:"vgain"`
|
||||
Igain float64 `json:"igain"`
|
||||
ErrCode int `json:"err_code"`
|
||||
} `json:"get_vgain_igain"`
|
||||
GetDaystat struct {
|
||||
DayList []struct {
|
||||
Year int `json:"year"`
|
||||
Month int `json:"month"`
|
||||
Day int `json:"day"`
|
||||
EnergyWh int `json:"energy_wh"`
|
||||
Year float64 `json:"year"`
|
||||
Month float64 `json:"month"`
|
||||
Day float64 `json:"day"`
|
||||
EnergyWh float64 `json:"energy_wh"`
|
||||
} `json:"day_list"`
|
||||
ErrCode int `json:"err_code"`
|
||||
} `json:"get_daystat"`
|
||||
|
Reference in New Issue
Block a user