humble_rpi-plugin-gps 0.1.0
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 +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/humble_rpi-plugin-gps.rb +28 -0
- metadata +88 -0
- metadata.gz.sig +1 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 0f4a2b037f083c33e1fb73e4c51218ae563a9c3c
|
|
4
|
+
data.tar.gz: dcf502735ecb4cd320974d298839fe8aa1174691
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 18f179880044fc418827afaee18f3248ebe79d502e1c067cc62931fbf67666595c13aae80b3836136a6c7cb95dcd67e0ee4957cfd194bcd4ee25b3eb53c6c6d6
|
|
7
|
+
data.tar.gz: d36ae9d1b035a90d9078e208dd54494a460b5e69451051314f5d9012ee847b656a9b59898176379527117bd4437e1f8202243d3da464c232f2f9b78697fb6d5a
|
checksums.yaml.gz.sig
ADDED
|
Binary file
|
data.tar.gz.sig
ADDED
|
Binary file
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
# file: humble_rpi-plugin-gps.rb
|
|
4
|
+
|
|
5
|
+
require 'serialport_gps'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class HumbleRPiPluginGps < SerialPortGPS
|
|
9
|
+
|
|
10
|
+
def initialize(settings: {port: "/dev/ttyAMA0", baud_rate: 9600,
|
|
11
|
+
refresh_rate: 8}, variables: {})
|
|
12
|
+
|
|
13
|
+
device_id = variables[:device_id] || 'pi'
|
|
14
|
+
|
|
15
|
+
gps_notification = lambda do |x|
|
|
16
|
+
|
|
17
|
+
variables[:notifier].notice "%s/gps: lat: %s lon: %s" %
|
|
18
|
+
[device_id, x.latitude, x.longitude]
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
h = settings
|
|
22
|
+
super(port: h[:port], baud_rate: h[:baud_rate], h[:refresh_rate], \
|
|
23
|
+
callback: gps_notification)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
alias on_start start
|
|
27
|
+
|
|
28
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: humble_rpi-plugin-gps
|
|
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
|
+
8ixkARkWAmV1MB4XDTE1MDYxNjE3MjU1NFoXDTE2MDYxNTE3MjU1NFowSDESMBAG
|
|
16
|
+
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
|
17
|
+
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
|
18
|
+
ggEBAKozOi7FHW9JGg1b82zg/QDkdpcUywcflKjBGUpHGR/mhbwnxB45KcnWl/X9
|
|
19
|
+
DZJks6iCnPAqTMO5NtMWH4PHCsV331KqOkmMiKSjrHFMaD+r4iBskGHu3BuYXk/8
|
|
20
|
+
Q1Wf/21YSNCXdWMLzQKzOOgjlIGncktqJr2u8m9+R6eKK0dQISTiBxY6l86OOODN
|
|
21
|
+
/FUjuAC7kVqqCx9iBOSVx6AFGqZQGSvPGWSNM1kNtZgErmzcoyvu1gdSBRv/BBuj
|
|
22
|
+
ZsVoR5u23ZkrmFcIbdyPoH+jMPMZaw7Dkauyi3bWGps4j+5Rl87DAN4PkhoMBfzN
|
|
23
|
+
2gw5DiJ83VluFiC15/OWH23pSiECAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUwm/g5Z7z+bo/CtMnkaNQV25Bye8wJgYDVR0RBB8w
|
|
25
|
+
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAIKPeL59S
|
|
27
|
+
5thcDSe4NR2NwEB02Ez+9/biSskkCGmhx9H8NBnTOij+cM3jYJlIUq0XQKO5/Xu/
|
|
28
|
+
28t7qOXG3sQJwglbgepcGIcFnO0Of/9qJ05BivX7Mrpk0uIZ8616JgwKZU1QvCXx
|
|
29
|
+
YmaGEkx/Famhq4qpfnAUm8PfG6ZEVClxPrQaGzoosveP3UZ8LlhgTE15S9BoL0hI
|
|
30
|
+
7XUsLZ4TtZMJ6xlnqc8+uH9ejRpOePhjNNyC0mUIAy9D9IVV2dF3UtGoWevNB3Rq
|
|
31
|
+
GNTzzhiTs04If8HHqRQACcm33kroUEvvkvGHYKSRWxs76BZ7THSSKpcMB+ayBo5s
|
|
32
|
+
408o5mfDmHEIrQ==
|
|
33
|
+
-----END CERTIFICATE-----
|
|
34
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
|
35
|
+
dependencies:
|
|
36
|
+
- !ruby/object:Gem::Dependency
|
|
37
|
+
name: serialport_gps
|
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - "~>"
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '0.2'
|
|
43
|
+
- - ">="
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: 0.2.0
|
|
46
|
+
type: :runtime
|
|
47
|
+
prerelease: false
|
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
49
|
+
requirements:
|
|
50
|
+
- - "~>"
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: '0.2'
|
|
53
|
+
- - ">="
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: 0.2.0
|
|
56
|
+
description:
|
|
57
|
+
email: james@r0bertson.co.uk
|
|
58
|
+
executables: []
|
|
59
|
+
extensions: []
|
|
60
|
+
extra_rdoc_files: []
|
|
61
|
+
files:
|
|
62
|
+
- lib/humble_rpi-plugin-gps.rb
|
|
63
|
+
homepage: https://github.com/jrobertson/humble_rpi-plugin-gps
|
|
64
|
+
licenses:
|
|
65
|
+
- MIT
|
|
66
|
+
metadata: {}
|
|
67
|
+
post_install_message:
|
|
68
|
+
rdoc_options: []
|
|
69
|
+
require_paths:
|
|
70
|
+
- lib
|
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
|
+
requirements:
|
|
78
|
+
- - ">="
|
|
79
|
+
- !ruby/object:Gem::Version
|
|
80
|
+
version: '0'
|
|
81
|
+
requirements: []
|
|
82
|
+
rubyforge_project:
|
|
83
|
+
rubygems_version: 2.4.6
|
|
84
|
+
signing_key:
|
|
85
|
+
specification_version: 4
|
|
86
|
+
summary: A Humble_rpi plugin to publish the GPS location of the Raspberry Pi every
|
|
87
|
+
8 seconds by default.
|
|
88
|
+
test_files: []
|
metadata.gz.sig
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
^��>5J���P�H&#��[����(�%�q�
|