waterfurnace_aurora 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/aurora_fetch +1 -1
- data/exe/aurora_mock +1 -1
- data/exe/aurora_monitor +3 -1
- data/lib/aurora/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3127c610617c1008b2de42b4b03fc89867d12233548fc0baf6ea0ebb5ea08e8
|
4
|
+
data.tar.gz: '0190fccfece31159a9c5acdd14b648521c32e7b64f7cb596daeb3548b882393a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d8ae25889bcea9d6f6e7adfe8e242da729bc5172102688d4790c20a594e094f2aa27c78dfc7104895109bf4dc1636e357e6a03f60cb20918085f95fb8059211
|
7
|
+
data.tar.gz: 72682b009c4f19ff335d1b19759ccd813130148e9d5cfabfb9c915c88a497dbcc3290b2a36e1ef173e513843fd9e19827080236c092fd311618f88ac128e3de4
|
data/exe/aurora_fetch
CHANGED
@@ -18,7 +18,7 @@ args = if uri.scheme == "telnet" || uri.scheme == "rfc2217"
|
|
18
18
|
end
|
19
19
|
|
20
20
|
client = ModBus::RTUClient.new(*args)
|
21
|
-
client.
|
21
|
+
client.logger = Logger.new($stdout, :debug)
|
22
22
|
slave = client.with_slave(1)
|
23
23
|
|
24
24
|
registers = slave.holding_registers[ARGV[1].to_i]
|
data/exe/aurora_mock
CHANGED
@@ -21,7 +21,7 @@ args = if uri.scheme == "telnet" || uri.scheme == "rfc2217"
|
|
21
21
|
port = ARGV[1]&.to_i || 502
|
22
22
|
|
23
23
|
server1 = ModBus::RTUServer.new(*args)
|
24
|
-
server1.
|
24
|
+
server1.logger = Logger.new($stdout, :debug)
|
25
25
|
# AID Tool queries slave 1, AWL queries slave 2; just use both
|
26
26
|
slave1 = server1.with_slave(1)
|
27
27
|
slave2 = server1.with_slave(2)
|
data/exe/aurora_monitor
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
require "aurora"
|
5
5
|
require "ccutrer-serialport"
|
6
|
+
require "logger"
|
6
7
|
require "optparse"
|
7
8
|
require "socket"
|
8
9
|
require "uri"
|
@@ -47,7 +48,8 @@ args = if uri.scheme == "telnet" || uri.scheme == "rfc2217"
|
|
47
48
|
|
48
49
|
server = ModBus::RTUServer.new(*args)
|
49
50
|
server.promiscuous = true
|
50
|
-
server.
|
51
|
+
server.logger = Logger.new($stdout)
|
52
|
+
server.logger.level = :debug if debug_modbus
|
51
53
|
|
52
54
|
diff_and_print = lambda do |registers|
|
53
55
|
registers = registers.slice(*(registers.keys - SENSOR_REGISTERS)) if ignore_sensors
|
data/lib/aurora/version.rb
CHANGED