humble_rpi-plugin-gps 0.1.1 → 0.1.2
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-gps.rb +6 -5
- metadata +2 -2
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0daa479ef3bb5998f0f2d4d7d9c86ffa608fc85e
|
4
|
+
data.tar.gz: b1cf03275f82d60ee41609b846773577dae83dca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 912b58c151f555c02c8fbc6645c7a6e661c6c529358a4e4c9cf26126cd5d343b4c59276e862c23e8189bc7b1c7e8242785f7e7c9b306ae833526e87a704f5c09
|
7
|
+
data.tar.gz: 27a6c9f45bc85ebb3a17c0a14505bae151e9985a6ef0f1eec0ccb31357ad501245afc736538860529e8c20dc1df9fbff89f06c2b4a297ab94b4e704847d89169
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
��o��+:�]+�!�-�0�B���<R�a/n�z���|�! ��9f��&�"��;�1�ʐ�_z��+Q��[y3"�_x�s]�Ξc1%)j�X�����Hs%9��]&����t'�$^�z/_m��?K��[�%1��Nz��`c��Wݑ~U~����������t��ņRm=����_J!B$�Ń�����������t����c�}ed>$��&C�"o�3��v��F��JEK
|
2
|
+
��a���7
|
@@ -7,8 +7,9 @@ require 'serialport_gps'
|
|
7
7
|
|
8
8
|
class HumbleRPiPluginGps < SerialPortGPS
|
9
9
|
|
10
|
-
def initialize(settings: {
|
10
|
+
def initialize(settings: {}, variables: {})
|
11
11
|
|
12
|
+
h = {port: "/dev/ttyAMA0", baud_rate: 9600, refresh_rate: 8}.merge settings
|
12
13
|
device_id = variables[:device_id] || 'pi'
|
13
14
|
|
14
15
|
gps_notification = lambda do |x|
|
@@ -17,10 +18,10 @@ class HumbleRPiPluginGps < SerialPortGPS
|
|
17
18
|
[device_id, x.latitude, x.longitude]
|
18
19
|
end
|
19
20
|
|
20
|
-
h
|
21
|
-
super(port: h[:port], baud_rate: h[:baud_rate], refresh_rate: h[:refresh_rate], callback: gps_notification)
|
22
|
-
end
|
21
|
+
super(port: h[:port], baud_rate: h[:baud_rate], refresh_rate: h[:refresh_rate], callback: gps_notification)
|
23
22
|
|
23
|
+
end
|
24
|
+
|
24
25
|
alias on_start start
|
25
26
|
|
26
|
-
end
|
27
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: humble_rpi-plugin-gps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
GNTzzhiTs04If8HHqRQACcm33kroUEvvkvGHYKSRWxs76BZ7THSSKpcMB+ayBo5s
|
32
32
|
408o5mfDmHEIrQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-06-
|
34
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: serialport_gps
|
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
y_���0x�*t�2�J��on��Kv�y���G�-i�hj`�CP�$�i\̷�.���Z�"j�b����s���P*5�����0%�eQ������'�t�gjœ\c��|�|�^3�����~Rݬ����Fǐ��C�JT��mX��Y�Q[\j�?�L��6�����p���D�Y�mI����
|
2
|
+
$q�/,��k{��T�/���N��͜T�Ե��Y��\�|Zqߥ�5ަ��8.�n��q9c���Xǡ
|