humble_rpi-plugin-ld3w 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dbd8cb5b87dcbf08be576349bd9b2daedb1e858c
4
+ data.tar.gz: 7e6e80e622cd07a2805d51f36897c5ce3d638431
5
+ SHA512:
6
+ metadata.gz: 1db62e750ef9d496c881a56d0aafea0f40ca7ca083cdb1dafb62a75d0d61ced97c43f4b927adcf7cf675a22c3cd191db36d0b6c2cdd24debfbd4e5b75c8d8cb8
7
+ data.tar.gz: 6ae8fc87e58c20361d186c3cdfcf13ca4478e4ea117017de2d40ecf2a9cdbd29d8f3529b4f01851dbf3ce6ab016577f87a15869b027d2b51b7683b8cec4b1384
checksums.yaml.gz.sig ADDED
Binary file
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: humble_rpi-plugin-ld3w.rb
4
+
5
+
6
+ require 'ld3w'
7
+ require 'run_every'
8
+
9
+
10
+ # Intended for using a Nokia LD-3W with a Raspberry Pi from the Humble_RPi gem
11
+
12
+
13
+ class HumbleRPiPluginLd3W
14
+
15
+ def initialize(settings: {}, variables: {})
16
+
17
+ h = {rfdevice: 'rfcomm0', bdaddress: '', channel: '1',
18
+ refresh_rate: 60}.merge settings
19
+ device_id = variables[:device_id] || 'pi'
20
+
21
+ ld3w = Ld3w.new device: h[:rfdevice], bdaddress: h[:bdaddress],
22
+ channel: h[:channel]
23
+
24
+ RunEvery.new(seconds: h[:refresh_rate]) do
25
+
26
+ loc = ld3w.locate
27
+ variables[:notifier].notice "%s/gps: lat: %s lon: %s" %
28
+ [device_id, loc.latitude, loc.longitude]
29
+ end
30
+
31
+
32
+ end
33
+
34
+ alias on_start start
35
+
36
+ end
data.tar.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ ��{�y��k��sj���ݬ���ԙEWY�9Qx�^�
2
+ Z�U�y��g�J�.=�]z�k���*NL8��Q��ql��/nX��QEzF9��a��jx�����5Ȓ�-����_�)���G�\�Wo�}�o�
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: humble_rpi-plugin-ld3w
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - James Robertson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
+ YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
+ 8ixkARkWAmV1MB4XDTE3MDYyMTIxMTc1NVoXDTE4MDYyMTIxMTc1NVowSDESMBAG
16
+ A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
+ EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
+ ggEBAMEA3A6LEmpefMJyV8r1qpf7bqIn2tQQ9bTE4f/IDO6AfDg8Tnftw9LGmv0N
19
+ mOCZMKuBuNmE8IH/xCAlZRmfJJFBFFEuj/1eQJcBXawAQMXslolBwbhNUP4tYt4X
20
+ 8JAiAK6vLkMWK2Z5bkxrgQtIf2OgiOI75CdbjuX7M0MRqeiGUseaowo8ZCiGgrfy
21
+ GufcmmgN7uVWluhLMKX66SrYXIbSynXS6ZetzZdWpQV1KGqmtMC5quqafA0V1mOS
22
+ Y9Fiy25pXykiH/4EPTPCIaS5gciiyeDDRIW4mOLERg2KDDnKLQgd6b+NEpUtG4wh
23
+ x8bC1vQ4Y/0nvcV6TLH7efmnQdcCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
+ DwQEAwIEsDAdBgNVHQ4EFgQUhlTZqTjekBEfzhWKsYTimbCugCUwJgYDVR0RBB8w
25
+ HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAmIxofgYz
27
+ uZoR9eDO0j4EDmDYIksv0W8h1b+5BejRQeB6Fqh6wHactRshp249fmAtECvn0s/b
28
+ zWhvs/z1IJZ7qSdTpptViUCh6PJUtCTGO3mKPPZcsQAQ8xqofg5DsA4rlhp+7F2n
29
+ nP56LyG7n6XYpKE38b19LPxv53/Eyz95LI71W2SxBBPcq6CwHSdrVcNF7+r2XTdN
30
+ LtdrEjNPZB1M9pY/WECWZbi9NMJFejpw8diOGX8H1ON8xSMqvIJS/ExSohohstaJ
31
+ fGbMYVpzDZdtc7rXh4ahEh/PfW8RdXtKjJ/MfkBtOOPQrqA4USvbSMPHzneuHXbO
32
+ obpw6xlEM1AC6A==
33
+ -----END CERTIFICATE-----
34
+ date: 2017-06-21 00:00:00.000000000 Z
35
+ dependencies:
36
+ - !ruby/object:Gem::Dependency
37
+ name: ld3w
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.1'
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 0.1.1
46
+ type: :runtime
47
+ prerelease: false
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '0.1'
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 0.1.1
56
+ - !ruby/object:Gem::Dependency
57
+ name: run_every
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.1'
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 0.1.9
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '0.1'
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 0.1.9
76
+ description:
77
+ email: james@jamesrobertson.eu
78
+ executables: []
79
+ extensions: []
80
+ extra_rdoc_files: []
81
+ files:
82
+ - lib/humble_rpi-plugin-ld3w.rb
83
+ homepage: https://github.com/jrobertson/humble_rpi-plugin-ld3w
84
+ licenses:
85
+ - MIT
86
+ metadata: {}
87
+ post_install_message:
88
+ rdoc_options: []
89
+ require_paths:
90
+ - lib
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ requirements: []
102
+ rubyforge_project:
103
+ rubygems_version: 2.6.8
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: Intended for using a Nokia LD-3W with a Raspberry Pi from the Humble_RPi
107
+ gem
108
+ test_files: []
metadata.gz.sig ADDED
@@ -0,0 +1 @@
1
+ ��"�Y�����~w��?SǂLp}YJIa � f�P������;�:J#�W^�*��%���:ӻ�\��)\