balboa_worldwide_app 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/bwa_mqtt_bridge +3 -3
- data/lib/bwa/client.rb +1 -1
- data/lib/bwa/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b3690c43f61e80376391c61d447f3e8430ae844ffc5d380afa9bb90636095bd
|
4
|
+
data.tar.gz: 284a4856cac4830956a8e944572ce724f0bbeba98efa3cba0a879d932193bc23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a82e78b7f1ea26b74fe71117e9ca9c549708851f39a62c176650faf12c972f32658a541edac023ccd81def26fa6c2e8844adb3bf8b0f95bc4720ecf11d44e9c
|
7
|
+
data.tar.gz: 00ffc61f1eb37ac4025e03e3a0412835e1211f2faa82d46dc6115de3a13ede7e4526fe3527bd9d04b9dfb8873ccfe566992e7a8a6955adca55161a6be2d45dd3
|
data/bin/bwa_mqtt_bridge
CHANGED
@@ -126,7 +126,7 @@ class MQTTBridge
|
|
126
126
|
next @bwa.toggle_blower if value == 'toggle'
|
127
127
|
@bwa.set_blower(value.to_i)
|
128
128
|
when "spa/settemperature/set"
|
129
|
-
@bwa.set_temperature(value.
|
129
|
+
@bwa.set_temperature(value.to_f)
|
130
130
|
end
|
131
131
|
end
|
132
132
|
end
|
@@ -186,10 +186,10 @@ class MQTTBridge
|
|
186
186
|
subscribe("spa/temperaturerange/set")
|
187
187
|
|
188
188
|
publish("spa/currenttemperature/$name", "Current temperature")
|
189
|
-
publish("spa/currenttemperature/$datatype", "
|
189
|
+
publish("spa/currenttemperature/$datatype", "float")
|
190
190
|
|
191
191
|
publish("spa/settemperature/$name", "Set Temperature")
|
192
|
-
publish("spa/settemperature/$datatype", "
|
192
|
+
publish("spa/settemperature/$datatype", "float")
|
193
193
|
publish("spa/settemperature/$settable", "true")
|
194
194
|
subscribe("spa/settemperature/set")
|
195
195
|
|
data/lib/bwa/client.rb
CHANGED
@@ -145,7 +145,7 @@ module BWA
|
|
145
145
|
# low range is 50-80 for F, 10-26 for C (by 0.5)
|
146
146
|
def set_temperature(desired)
|
147
147
|
desired *= 2 if last_status && last_status.temperature_scale == :celsius || desired < 50
|
148
|
-
send_message("\x0a\xbf\x20#{desired.chr}")
|
148
|
+
send_message("\x0a\xbf\x20#{desired.round.chr}")
|
149
149
|
end
|
150
150
|
|
151
151
|
def set_time(hour, minute, twenty_four_hour_time = false)
|
data/lib/bwa/version.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: balboa_worldwide_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-03-15 00:00:00.000000000 Z
|
@@ -94,7 +94,7 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '13.0'
|
97
|
-
description:
|
97
|
+
description:
|
98
98
|
email: cody@cutrer.com'
|
99
99
|
executables:
|
100
100
|
- bwa_mqtt_bridge
|
@@ -128,7 +128,7 @@ homepage: https://github.com/ccutrer/bwa
|
|
128
128
|
licenses:
|
129
129
|
- MIT
|
130
130
|
metadata: {}
|
131
|
-
post_install_message:
|
131
|
+
post_install_message:
|
132
132
|
rdoc_options: []
|
133
133
|
require_paths:
|
134
134
|
- lib
|
@@ -143,8 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
rubygems_version: 3.
|
147
|
-
signing_key:
|
146
|
+
rubygems_version: 3.0.3
|
147
|
+
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Library for communication with Balboa Water Group's WiFi module or RS-485
|
150
150
|
test_files: []
|