rpi_pinin_msgout 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
- checksums.yaml.gz.sig +0 -0
- data/lib/rpi_pinin_msgout.rb +13 -0
- data.tar.gz.sig +0 -0
- metadata +19 -19
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3fff19560683cc7f664fef15bc32896dc03b165
|
4
|
+
data.tar.gz: 90706d663044c876dae04f455ac5d8a78e97c225
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: decf2fdab59440cc6189855b99150372bf6394ee35dcacaa154da9893dae8f6c7470ec04e6e20f6876c3234caaa318bc4f465382e5f2e65c92a60ea1ee78ce02
|
7
|
+
data.tar.gz: 59a59828b01ef78191cb72336eaa6ceb623743b8c71066ffbec751b3c0741f8689cfe44e4c59c1906ec20d4a0005dd1961895946655efe980fcee1907c655b37
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rpi_pinin_msgout.rb
CHANGED
@@ -52,6 +52,7 @@ class RPiPinInMsgOut < RPiPinIn
|
|
52
52
|
@mode, @verbose, @notifier, @duration = mode, verbose, notifier, duration
|
53
53
|
@capture_rate, @descriptor = capture_rate, descriptor
|
54
54
|
@topic = [device_id, subtopic, index].join('/')
|
55
|
+
@old_state = 'up'
|
55
56
|
|
56
57
|
end
|
57
58
|
|
@@ -62,6 +63,18 @@ class RPiPinInMsgOut < RPiPinIn
|
|
62
63
|
button_setup do |state|
|
63
64
|
default_mode() if state == HIGH
|
64
65
|
end
|
66
|
+
|
67
|
+
elsif @mode == :downup
|
68
|
+
|
69
|
+
button_setup do |raw_state|
|
70
|
+
|
71
|
+
state = raw_state == HIGH ? 'down' : 'up'
|
72
|
+
next if state == @old_state
|
73
|
+
|
74
|
+
@notifier.notice "%s: button %s" % [@topic, state]
|
75
|
+
@old_state = state
|
76
|
+
|
77
|
+
end
|
65
78
|
|
66
79
|
elsif @mode == :secretknock
|
67
80
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpi_pinin_msgout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE3MDQyMzE0MDgwMFoXDTE4MDQyMzE0MDgwMFowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBALKhe3ldPAE4J7JTGCMwExiT6URZ421J2ikz9UYXLh89pEEbSuW+QS5FaQpl
|
19
|
+
NLle+vjTAMKb1gMRiaTUFoE7qxMW8dfKMFsvXDmD0593Dxoql+VwEjlVkIRzSvpX
|
20
|
+
NLUwAM6Xl5UA0zxLn4LTGB8tyPDkcYCJUWrrEhsx6Mds3wR4fkJXRBz34izwzkAO
|
21
|
+
OwFFxLawcmP1J/sOrd659jddgPtm58YtjZYHFSDDTQZsksK7UgUP4PJHlzFypTRn
|
22
|
+
AEsnyTLZcwlgrQCcT2ljRb/4f1CTqrCDXGUyR8m5gQw2yzgwkLsRdTL3DV3ZoHdf
|
23
|
+
vf6Gu9IIxf9vPIu8h7fFWH2EGi0CAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQU9FarqJckDePfivVXm/k9aiIJAcMwJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAalLcmLYe
|
27
|
+
j5bG/+JSqvhTi1iMPcwUa/czKOUqD8fV9QqQ9jlXzSwnlTw/ewp96twzCtjOrvHC
|
28
|
+
VwyaNKD6ZRXiWgqvvwWgknrsP4CPE9rh8C2HC9gx3j+L4HmEibWcew/1+0HM0+8T
|
29
|
+
L8HPr2swQB0TjEdYcq+qbC8GmzzvXxYfzALeR2f1ZGVIDZ/7VBHvo5HfrM6HHnq4
|
30
|
+
bHqtkTsm3/ijTMveqmbwPbgzfXvXcEzdBD5lXMS5CrNTGOHOvn8SjjmoxVwZLIiv
|
31
|
+
/QWZvLXLPa7OQNk3073tdTJpg7UikQHoJfARvTOkJRUdVj1SKcKKZYkhBT94JX0N
|
32
|
+
Qsb+l0B03acbnw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2017-04-23 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rpi_pinin
|
@@ -134,7 +134,7 @@ dependencies:
|
|
134
134
|
- !ruby/object:Gem::Version
|
135
135
|
version: 0.1.2
|
136
136
|
description:
|
137
|
-
email: james@
|
137
|
+
email: james@jamesrobertson.eu
|
138
138
|
executables: []
|
139
139
|
extensions: []
|
140
140
|
extra_rdoc_files: []
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.6.8
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: Returns meaningful messages for humans from the capture of a Raspberry PI
|
metadata.gz.sig
CHANGED
Binary file
|