evcc-io/vehicle/ovms/types.go
2024-03-13 09:50:02 +01:00

27 lines
717 B
Go

package ovms
const UnitMiles = "M"
type StatusResponse struct {
Units string `json:"units"`
Odometer float64 `json:"odometer,string"`
}
type ChargeResponse struct {
Units string `json:"units"`
ChargeEtrFull int64 `json:"charge_etr_full,string"`
ChargeState string `json:"chargestate"`
ChargePortOpen int `json:"cp_dooropen"`
EstimatedRange int64 `json:"estimatedrange,string"`
MessageAgeServer int `json:"m_msgage_s"`
Soc float64 `json:"soc,string"`
}
type LocationResponse struct {
Latitude float64 `json:"latitude,string"`
Longitude float64 `json:"longitude,string"`
}
type ConnectResponse struct {
NetConnected int `json:"v_net_connected"`
}