waterfurnace_aurora 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Aurora
2
- VERSION = '0.2.0'
4
+ VERSION = "0.2.1"
3
5
  end
data/lib/aurora.rb CHANGED
@@ -1,10 +1,12 @@
1
- require 'rmodbus'
1
+ # frozen_string_literal: true
2
2
 
3
- require 'aurora/abc_client'
4
- require 'aurora/iz2_zone'
5
- require 'aurora/modbus/server'
6
- require 'aurora/modbus/slave'
7
- require 'aurora/registers'
3
+ require "rmodbus"
4
+
5
+ require "aurora/abc_client"
6
+ require "aurora/iz2_zone"
7
+ require "aurora/modbus/server"
8
+ require "aurora/modbus/slave"
9
+ require "aurora/registers"
8
10
 
9
11
  # extend ModBus for WaterFurnace's custom functions
10
12
  ModBus::RTUServer.include(Aurora::ModBus::Server)
@@ -1 +1,3 @@
1
- require 'aurora'
1
+ # frozen_string_literal: true
2
+
3
+ require "aurora"
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waterfurnace_aurora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2021-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: homie-mqtt
14
+ name: ccutrer-serialport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.1
19
+ version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.4.1
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: net-telnet-rfc2217
28
+ name: homie-mqtt
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.4
33
+ version: 1.4.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.4
40
+ version: 1.4.1
41
41
  - !ruby/object:Gem::Dependency
42
- name: ccutrer-serialport
42
+ name: net-telnet-rfc2217
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.0.0
47
+ version: 0.0.4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.0
54
+ version: 0.0.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rmodbus-ccutrer
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -81,45 +81,48 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '9.0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rake
84
+ name: gserver
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '13.0'
89
+ version: 0.0.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '13.0'
96
+ version: 0.0.1
97
97
  - !ruby/object:Gem::Dependency
98
- name: gserver
98
+ name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.0.1
103
+ version: '1.19'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.0.1
110
+ version: '1.19'
111
111
  description:
112
112
  email: cody@cutrer.com'
113
113
  executables:
114
+ - aurora_monitor
114
115
  - aurora_mqtt_bridge
116
+ - aurora_mock
117
+ - aurora_fetch
115
118
  extensions: []
116
119
  extra_rdoc_files: []
117
120
  files:
118
- - bin/aurora_fetch
119
- - bin/aurora_mock
120
- - bin/aurora_monitor
121
- - bin/aurora_mqtt_bridge
122
- - bin/registers.yml
121
+ - exe/aurora_fetch
122
+ - exe/aurora_mock
123
+ - exe/aurora_monitor
124
+ - exe/aurora_mqtt_bridge
125
+ - exe/registers.yml
123
126
  - lib/aurora.rb
124
127
  - lib/aurora/abc_client.rb
125
128
  - lib/aurora/iz2_zone.rb
@@ -140,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
143
  requirements:
141
144
  - - ">="
142
145
  - !ruby/object:Gem::Version
143
- version: '0'
146
+ version: '2.6'
144
147
  required_rubygems_version: !ruby/object:Gem::Requirement
145
148
  requirements:
146
149
  - - ">="
data/bin/aurora_fetch DELETED
@@ -1,25 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'aurora'
4
- require 'ccutrer-serialport'
5
- require 'uri'
6
-
7
- uri = URI.parse(ARGV[0])
8
-
9
- args = if uri.scheme == "telnet" || uri.scheme == "rfc2217"
10
- require 'net/telnet/rfc2217'
11
- [Net::Telnet::RFC2217.new('Host' => uri.host,
12
- 'Port' => uri.port || 23,
13
- 'baud' => 19200,
14
- 'parity' => Net::Telnet::RFC2217::EVEN)]
15
- else
16
- [CCutrer::SerialPort.new(uri.path, baud: 19200, parity: :even)]
17
- end
18
-
19
- client = ModBus::RTUClient.new(*args)
20
- client.debug = true
21
- slave = client.with_slave(1)
22
-
23
- registers = slave.holding_registers[ARGV[1].to_i]
24
-
25
- puts registers.inspect