Some minor fixes
All checks were successful
Build and Push Docker Image / testing (1.24.x, ubuntu-latest) (push) Successful in 27s
Build and Push Docker Image / build-and-push (push) Successful in 9m52s

This commit is contained in:
2025-06-05 16:46:37 -04:00
parent ae463d6ba3
commit 181275e956
3 changed files with 3 additions and 3 deletions

View File

@ -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
)

2
go.mod
View File

@ -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

View File

@ -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 + `,`
}