|
|
@ -4,6 +4,7 @@ import ( |
|
|
|
"fmt" |
|
|
|
"fmt" |
|
|
|
"os" |
|
|
|
"os" |
|
|
|
"strings" |
|
|
|
"strings" |
|
|
|
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/bogosj/tesla" |
|
|
|
"github.com/bogosj/tesla" |
|
|
|
"github.com/therecipe/qt/widgets" |
|
|
|
"github.com/therecipe/qt/widgets" |
|
|
@ -277,7 +278,10 @@ func enableClimate(i int) { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
vehicle.StopAirConditioning() |
|
|
|
vehicle.StopAirConditioning() |
|
|
|
} |
|
|
|
} |
|
|
|
go setValues() |
|
|
|
go func() { |
|
|
|
|
|
|
|
time.Sleep(1 * time.Minute) |
|
|
|
|
|
|
|
setValues() |
|
|
|
|
|
|
|
}() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func lockDoors(i int) { |
|
|
|
func lockDoors(i int) { |
|
|
|