From 59ee34b8993186c045aaf3aa0a7c1528e5699c6c Mon Sep 17 00:00:00 2001 From: Alex Savin Date: Thu, 29 May 2025 00:31:40 -0400 Subject: [PATCH] Changed tires pressure psi from string to int --- mysubaru.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mysubaru.go b/mysubaru.go index 3f83052..6042d83 100644 --- a/mysubaru.go +++ b/mysubaru.go @@ -159,14 +159,14 @@ type VehicleStatus struct { AvgFuelConsumptionMpg float64 `json:"avgFuelConsumptionMpg"` // + 18.4 AvgFuelConsumptionLitersPer100Kilometers float64 `json:"avgFuelConsumptionLitersPer100Kilometers"` // + 12.8 RemainingFuelPercent int `json:"remainingFuelPercent"` // + 82 - TirePressureFrontLeft string `json:"tirePressureFrontLeft"` // + "2275" - TirePressureFrontRight string `json:"tirePressureFrontRight"` // + "2344" - TirePressureRearLeft string `json:"tirePressureRearLeft"` // + "2413" - TirePressureRearRight string `json:"tirePressureRearRight"` // + "2344" - TirePressureFrontLeftPsi string `json:"tirePressureFrontLeftPsi"` // + "33" - TirePressureFrontRightPsi string `json:"tirePressureFrontRightPsi"` // + "34" - TirePressureRearLeftPsi string `json:"tirePressureRearLeftPsi"` // + "35" - TirePressureRearRightPsi string `json:"tirePressureRearRightPsi"` // + "34" + TirePressureFrontLeft int `json:"tirePressureFrontLeft"` // + "2275" + TirePressureFrontRight int `json:"tirePressureFrontRight"` // + "2344" + TirePressureRearLeft int `json:"tirePressureRearLeft"` // + "2413" + TirePressureRearRight int `json:"tirePressureRearRight"` // + "2344" + TirePressureFrontLeftPsi int `json:"tirePressureFrontLeftPsi"` // + "33" + TirePressureFrontRightPsi int `json:"tirePressureFrontRightPsi"` // + "34" + TirePressureRearLeftPsi int `json:"tirePressureRearLeftPsi"` // + "35" + TirePressureRearRightPsi int `json:"tirePressureRearRightPsi"` // + "34" TyreStatusFrontLeft string `json:"tyreStatusFrontLeft"` // + "UNKNOWN" TyreStatusFrontRight string `json:"tyreStatusFrontRight"` // + "UNKNOWN" TyreStatusRearLeft string `json:"tyreStatusRearLeft"` // + "UNKNOWN"