More changes
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 23s
This commit is contained in:
13
vehicle.go
13
vehicle.go
@ -8,8 +8,6 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Jeffail/gabs/v2"
|
||||
)
|
||||
|
||||
var parts = map[string]map[string][]string{
|
||||
@ -961,12 +959,19 @@ func (v *Vehicle) GetVehicleHealth() {
|
||||
}
|
||||
|
||||
if r.Success {
|
||||
_, err := gabs.ParseJSON(resp)
|
||||
var vh VehicleHealth
|
||||
err = json.Unmarshal(r.Data, &vh)
|
||||
if err != nil {
|
||||
v.client.logger.Error("error while parsing json", "request", "GetVehicleHealth", "error", err.Error())
|
||||
}
|
||||
// TODO:
|
||||
v.client.logger.Debug("http request output", "request", "GetVehicleHealth", "body", resp)
|
||||
|
||||
// TODO: Loop over all the Vehicle Health Items
|
||||
|
||||
} else {
|
||||
v.client.logger.Error("active STARLINK Security Plus subscription required")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// // GetClimateSettings .
|
||||
|
Reference in New Issue
Block a user