From 181275e956c1ffcd75e19a05b51899ea719ed67c Mon Sep 17 00:00:00 2001 From: Alex Savin Date: Thu, 5 Jun 2025 16:46:37 -0400 Subject: [PATCH] Some minor fixes --- app/app.go | 2 +- go.mod | 2 +- workers/mysubaru.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/app.go b/app/app.go index 75f5345..956f6ba 100644 --- a/app/app.go +++ b/app/app.go @@ -20,7 +20,7 @@ import ( ) const ( - AppVersion = "1.0.1" // the current application version. + AppVersion = "1.1.0" // the current application version. AppName = "mysubarumq" // the short app name ) diff --git a/go.mod b/go.mod index 7997923..fc8d8d0 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.24 replace github.com/armon/go-metrics => github.com/hashicorp/go-metrics v0.5.3 require ( - git.savin.nyc/alex/mysubaru v0.0.0-20250605181433-57e0e7899dc0 + git.savin.nyc/alex/mysubaru v0.0.0-20250605204346-28f650dc7d45 github.com/eclipse/paho.mqtt.golang v1.5.0 github.com/hashicorp/consul/api v1.32.1 github.com/spf13/viper v1.20.1 diff --git a/workers/mysubaru.go b/workers/mysubaru.go index 40e79bd..0f30238 100644 --- a/workers/mysubaru.go +++ b/workers/mysubaru.go @@ -405,7 +405,7 @@ func (s *MySubaruClient) mySubaruStatusToMQTTMessage(v *mysubaru.Vehicle) []*bus tq := len(v.Tires) tc := 1 for n, t := range v.Tires { - tires = tires + `"` + n + `":` + strconv.Itoa(t.Pressure) + tires = tires + `"` + n + `":` + strconv.Itoa(t.PressurePsi) if tc != tq { tires = tires + `,` }