somfy_sdn 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/somfy_sdn +1 -0
- data/lib/sdn/cli/mqtt/subscriptions.rb +2 -2
- data/lib/sdn/cli/provisioner.rb +1 -5
- data/lib/sdn/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: 376921afa9659381b31f588319c02f35f3d539052e8eb6375b311420bcdac60e
|
4
|
+
data.tar.gz: 8c8f5644816c615d0f31dec41e615a1d5857c1f1ee94e45d83bc759616c30e04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84de94b508cc42c76bab56b3a02ba61cd389277463583353c67df5798a710016e143b4607367be71db35efa052949c146476a591ef4d8a08f54a99e76833e907
|
7
|
+
data.tar.gz: 2319f36c605560ebccc80e64600a26f2fec4abb806d33bb041bb0f667c41de1f6facecf8bd93b0ec557a676b34474393c1b4fa807a3cfcc84adbbae9244e0ccc
|
data/exe/somfy_sdn
CHANGED
@@ -59,7 +59,7 @@ module SDN
|
|
59
59
|
case value
|
60
60
|
when "up", "down"
|
61
61
|
((motor&.node_type == :st50ilt2) ? ns::SetMotorPosition : Message::MoveTo)
|
62
|
-
.new(addr, "#{value}_limit"
|
62
|
+
.new(addr, :"#{value}_limit")
|
63
63
|
when "stop"
|
64
64
|
if motor&.node_type == :st50ilt2
|
65
65
|
ns::SetMotorPosition.new(addr,
|
@@ -89,7 +89,7 @@ module SDN
|
|
89
89
|
when /jog-(?:pulses|ms)/
|
90
90
|
value = value.to_i
|
91
91
|
((motor&.node_type == :st50ilt2) ? ns::SetMotorPosition : Message::MoveOf)
|
92
|
-
.new(addr, "jog_#{value.negative? ? :up : :down}_#{match[:jog_type]}"
|
92
|
+
.new(addr, :"jog_#{value.negative? ? :up : :down}_#{match[:jog_type]}", value.abs)
|
93
93
|
when "reset"
|
94
94
|
return unless Message::SetFactoryDefault::RESET.key?(value.to_sym)
|
95
95
|
|
data/lib/sdn/cli/provisioner.rb
CHANGED
@@ -130,11 +130,7 @@ module SDN
|
|
130
130
|
end
|
131
131
|
refresh
|
132
132
|
when "l"
|
133
|
-
|
134
|
-
sdn.ensure(Message::ILT2::SetMotorSettings.new(addr, reversed_int, @pos, @pos))
|
135
|
-
else
|
136
|
-
sdn.ensure(Message::SetMotorLimits.new(addr, :current_position, :down))
|
137
|
-
end
|
133
|
+
sdn.ensure(Message::ILT2::SetMotorSettings.new(addr, reversed_int, @pos, @pos))
|
138
134
|
refresh
|
139
135
|
when "r"
|
140
136
|
@reversed = !@reversed
|
data/lib/sdn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: somfy_sdn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.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:
|
11
|
+
date: 2024-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ccutrer-serialport
|
@@ -81,19 +81,19 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: debug
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '9
|
89
|
+
version: '1.9'
|
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: '9
|
96
|
+
version: '1.9'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
187
|
- !ruby/object:Gem::Version
|
188
188
|
version: '0'
|
189
189
|
requirements: []
|
190
|
-
rubygems_version: 3.
|
190
|
+
rubygems_version: 3.5.11
|
191
191
|
signing_key:
|
192
192
|
specification_version: 4
|
193
193
|
summary: Library for communication with Somfy SDN RS-485 motorized shades
|