From 0a522be1d002de847cb81ddc1afcf04083431158 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Tue, 13 Jul 2021 15:13:14 -0400 Subject: [PATCH] Actually use climate setting --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index b632adb..20d5cd8 100644 --- a/main.go +++ b/main.go @@ -3,6 +3,7 @@ package main import ( "fmt" "os" + "strconv" "strings" "time" @@ -273,7 +274,12 @@ func setValues() { } func enableClimate(i int) { + temp, err := strconv.ParseFloat(tempSetting.Text(), 64) + if err != nil { + showDialogue("Unable to parse temp setting\n%+v", err) + } if i == 0 { + vehicle.SetTemperature(temp,temp) vehicle.StartAirConditioning() } else { vehicle.StopAirConditioning()