Starting work on the Climate Profiles
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:
@ -159,7 +159,8 @@ func (v *Vehicle) String() string {
|
||||
vString += "Miles: " + strconv.Itoa(v.DistanceToEmpty.Miles) + "\n"
|
||||
vString += "Kilometers: " + strconv.Itoa(v.DistanceToEmpty.Kilometers) + "\n"
|
||||
|
||||
vString += "=== FUEL CONSUMPTION =====================\n"
|
||||
vString += "=== FUEL =============================\n"
|
||||
vString += "Tank (%): " + fmt.Sprintf("%v", v.DistanceToEmpty.Percentage) + "\n"
|
||||
vString += "MPG: " + fmt.Sprintf("%v", v.FuelConsumptionAvg.MPG) + "\n"
|
||||
vString += "Litres per 100 km: " + fmt.Sprintf("%v", v.FuelConsumptionAvg.LP100Km) + "\n"
|
||||
|
||||
@ -443,6 +444,7 @@ func (v *Vehicle) GetClimateQuickPresets() {
|
||||
|
||||
// ONLY FOR THAT REQUEST BECAUSE OF API SENDS BACK ESCAPING DATA IN DATA FIELD
|
||||
data, ok := respParsed.Path("data").Data().(string)
|
||||
|
||||
// rawIn := json.RawMessage(in)
|
||||
// bytes, err := rawIn.MarshalJSON()
|
||||
// if err != nil {
|
||||
@ -569,6 +571,7 @@ func (v *Vehicle) GetVehicleStatus() {
|
||||
|
||||
v.GeoLocation.Latitude = float64(vSta.Latitude)
|
||||
v.GeoLocation.Longitude = float64(vSta.Longitude)
|
||||
v.GeoLocation.Heading = vSta.Heading
|
||||
|
||||
re := regexp.MustCompile(`[A-Z][^A-Z]*`)
|
||||
|
||||
|
Reference in New Issue
Block a user