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"` Climater int `json:"staleambient,string"` } type LocationResponse struct { Latitude float64 `json:"latitude,string"` Longitude float64 `json:"longitude,string"` } type ConnectResponse struct { NetConnected int `json:"v_net_connected"` }