waterfurnace_aurora 1.4.1 → 1.4.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: a4ef5fcf0d051051e1d2b07a2523a7bdedeea3cfaab48de2e19b83390e5c8ed0
4
- data.tar.gz: '0878a54174573799ced9e84c33b5eea9681a5f0b17267910e811d8ea2ee782d2'
3
+ metadata.gz: 2d5bee0f2cffba19731706869b56caf63404b81a1b570de2371123edcc4ca086
4
+ data.tar.gz: fdfaa768ff29702215564e8fca08b9c709a8e513ca05fbc10af149e80100497d
5
5
  SHA512:
6
- metadata.gz: c0ed9e08f56e21efa081885f0545db7312e252f8f6779161ed40f004b1f50d7f571548089b9c8bbbfb3f968fbf8c16402b46cb735c52128e219088c32a330da4
7
- data.tar.gz: 84585586ae2f09560f31bbdd2c165fe2fdef6345774faf078ab3fc2426ca1fad8622d33bc80612c6fd3f726d9fc9cead08dbde58da812a8217da8472b3ee16ef
6
+ metadata.gz: 13486b5db0bb4bae2c6370a50b41d165b396d7b15b146ed2c97ab340003f2ef661a707508a3846017943e5a86627da7a3843a696f4811a231e3a342105ef94df
7
+ data.tar.gz: 85f1d9697f5b787226181348aea84bb2735c6e3568e69374ad3768c0c246386ac4229c6f8cdb7a14685808e4dffe07932dfd24d5664be4e8b4885f1f5a016aaa
@@ -12,10 +12,12 @@ require "aurora/core_ext/string"
12
12
 
13
13
  debug_modbus = false
14
14
  web_aid_tool = nil
15
+ device_name = "WaterFurnace"
15
16
 
16
17
  options = OptionParser.new do |opts|
17
18
  opts.banner = "Usage: aurora_mqtt_bridge /path/to/serial/port [options]"
18
19
 
20
+ opts.on("--device-name DEVIECENAME", "Give a descriptive name to your device") { |v| device_name = v }
19
21
  opts.on("--debug-modbus", "Print actual protocol bytes") { debug_modbus = true }
20
22
  opts.on("--web-aid-tool PORT", "Run web aid tool on given port", :integer) { |v| web_aid_tool = v }
21
23
  opts.on("-v", "--version", "Print version") do
@@ -810,7 +812,7 @@ class MQTTBridge
810
812
  end
811
813
 
812
814
  device = "aurora-#{abc.serial_number}"
813
- homie = MQTT::Homie::Device.new(device, "WaterFurnace", mqtt: mqtt_uri)
815
+ homie = MQTT::Homie::Device.new(device, device_name, mqtt: mqtt_uri)
814
816
  homie.logger = Aurora.logger
815
817
 
816
818
  mqtt_bridge = MQTTBridge.new(abc, homie)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aurora
4
- VERSION = "1.4.1"
4
+ VERSION = "1.4.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waterfurnace_aurora
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-15 00:00:00.000000000 Z
11
+ date: 2022-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ccutrer-serialport