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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 537f4b0048b2f972b06f90fc404fc9589845cc7550e5305a19e0bab892e647e4
4
- data.tar.gz: 79fd85b3e8e95b6fade48c8135c170a52956b60d69199a84a31bed4ccd6f7c61
3
+ metadata.gz: 9b3690c43f61e80376391c61d447f3e8430ae844ffc5d380afa9bb90636095bd
4
+ data.tar.gz: 284a4856cac4830956a8e944572ce724f0bbeba98efa3cba0a879d932193bc23
5
5
  SHA512:
6
- metadata.gz: f9517634786bc75db423f2a2b4e2941535fc31deb0dd38f610c94f613ce4d00eafeadcc43c517fd5f475fc62392d00ba42b57f8b0abaad9d18289e4bf65fa1a7
7
- data.tar.gz: 7d4388cdeefa5477402594681fad8fee169ca02dc6449edec60cd827f80e81d9aba53251202217c6e8c20feca8e0ab29b20b4703d04641259a9eddeb47fc3d1c
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.to_i)
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", "integer")
189
+ publish("spa/currenttemperature/$datatype", "float")
190
190
 
191
191
  publish("spa/settemperature/$name", "Set Temperature")
192
- publish("spa/settemperature/$datatype", "integer")
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
@@ -1,3 +1,3 @@
1
1
  module BWA
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
3
3
  end
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.1
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.1.4
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: []