humble_rpi-plugin-tiltsensor 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -2
- data/lib/humble_rpi-plugin-tiltsensor.rb +3 -2
- metadata +1 -1
- 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: aff47e594ecd9956c12ba93f4a04d85092129009
|
|
4
|
+
data.tar.gz: de6bdc0bce739d8aab3f9fcea267d82d74807b83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cba0223130991c9fbfe64c025849ef6e6d28088762ff4a13b485c9a8ff44b2eb40aeaef6bf616ab3cc6b788fa4da595cf80592817c8cec5dd0ecfaaf223e4e4
|
|
7
|
+
data.tar.gz: 1ad83f723bafe3a5ecd2fcd3fe42af8ed720c809eafc000338d8c0f7fe88ff9e7e92750fe5aacc64c3ccc93632d0575ed838370e836e91bcf2fc1198b40d4d43
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
L���^(��蟍�Z�K��d�a���-�y�B�`yeF�3�4u�����P�q��Y�4�PyLϛVK��{g�@����Gr�M�$q��F"
|
|
2
|
+
�ӳ�Z�ԭ���A��
|
|
@@ -50,8 +50,9 @@ class HumbleRPiPluginTiltSensor
|
|
|
50
50
|
|
|
51
51
|
# identify if the movement is consecutive
|
|
52
52
|
msg = if elapsed < duration then
|
|
53
|
+
s = ChronicDuration.output(duration, :format => :long)
|
|
53
54
|
"%s/tilt/%s: detected %s times within the past %s" \
|
|
54
|
-
|
|
55
|
+
% [device_id, i, count, s ]
|
|
55
56
|
else
|
|
56
57
|
"%s/tilt/%s: detected" % [device_id, i]
|
|
57
58
|
end
|
|
@@ -75,4 +76,4 @@ class HumbleRPiPluginTiltSensor
|
|
|
75
76
|
|
|
76
77
|
alias on_start start
|
|
77
78
|
|
|
78
|
-
end
|
|
79
|
+
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|