BMW: request km instead of miles
This commit is contained in:
parent
8ddedecb42
commit
55e045dd93
1 changed files with 3 additions and 2 deletions
|
|
@ -46,8 +46,9 @@ func (v *API) eadrax() (VehiclesStatusResponse, error) {
|
|||
uri := fmt.Sprintf("%s/eadrax-vcs/v1/vehicles?apptimezone=60&appDateTime=%d", CocoApiURI, time.Now().Unix())
|
||||
|
||||
req, err := request.New(http.MethodGet, uri, nil, map[string]string{
|
||||
"Content-Type": request.JSONContent,
|
||||
"X-User-Agent": v.xUserAgent,
|
||||
"Content-Type": request.JSONContent,
|
||||
"X-User-Agent": v.xUserAgent,
|
||||
"bmw-units-preferences": "d=KM;v=L",
|
||||
})
|
||||
if err == nil {
|
||||
err = v.DoJSON(req, &res)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue