artoo-pebble 0.1.1 → 1.0.0.pre
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
- data/Gemfile.lock +6 -4
- data/README.md +45 -3
- data/artoo-pebble.gemspec +1 -1
- data/lib/artoo/drivers/pebble.rb +3 -1
- data/lib/artoo-pebble/version.rb +1 -1
- metadata +39 -74
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7b4fbe4221a983911e0672d89434c9c67c8bedf8
|
4
|
+
data.tar.gz: fd66e8af6b76de035d8024baa5b02fbab772a4ed
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 73753bc27af51fb36633bb610f940b7965c6b684c930e096c10772922169a0f324b182c6201becc951a3c8709678d6092374eac5f772055b3f470c13da8cef1d
|
7
|
+
data.tar.gz: aace4fff860cce4195ef4842fa5ece8551668b03da414a3946e4b500aef55fd0a1497c211328e2735827086a832559749a305c73fe90c7e78bb0a0a4b920f640
|
data/Gemfile.lock
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
artoo-pebble (0.
|
5
|
-
artoo (~> 1.0.0.
|
4
|
+
artoo-pebble (1.0.0.pre)
|
5
|
+
artoo (~> 1.0.0.rc2)
|
6
6
|
hybridgroup-pebblewatch (~> 0.1.2)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
|
-
artoo (1.0.0.
|
11
|
+
artoo (1.0.0.rc2)
|
12
12
|
celluloid (~> 0.14.1)
|
13
13
|
celluloid-io (~> 0.14.1)
|
14
14
|
multi_json (~> 1.6)
|
15
15
|
pry (~> 0.9)
|
16
16
|
rake (~> 10.0)
|
17
17
|
reel (~> 0.4.0.pre)
|
18
|
+
thor (~> 0.18.1)
|
18
19
|
celluloid (0.14.1)
|
19
20
|
timers (>= 1.0.0)
|
20
21
|
celluloid-io (0.14.1)
|
@@ -47,7 +48,8 @@ GEM
|
|
47
48
|
http_parser.rb (>= 0.5.3)
|
48
49
|
rack (>= 1.4.0)
|
49
50
|
websocket_parser (>= 0.1.2)
|
50
|
-
slop (3.4.
|
51
|
+
slop (3.4.6)
|
52
|
+
thor (0.18.1)
|
51
53
|
timers (1.1.0)
|
52
54
|
websocket_parser (0.1.4)
|
53
55
|
http
|
data/README.md
CHANGED
@@ -40,11 +40,53 @@ end
|
|
40
40
|
|
41
41
|
This software requires version 1.12.0 of the Pebble watch firmware.
|
42
42
|
|
43
|
+
### OSX
|
44
|
+
|
45
|
+
The main steps are:
|
46
|
+
- Pair your computer and the Pebble
|
47
|
+
- Use a socket to serial connection to map a TCP socket to the local port
|
48
|
+
- Connect to the device via Artoo
|
49
|
+
|
50
|
+
To figure out which port your pebble is connected to, use the `artoo connect scan` command:
|
51
|
+
|
52
|
+
```
|
53
|
+
$ artoo connect scan
|
54
|
+
```
|
55
|
+
|
56
|
+
Now you are ready to connect to the Sphero using the socket, in this example port 4567:
|
57
|
+
|
58
|
+
```
|
59
|
+
artoo connect socat 4567 pebble
|
60
|
+
```
|
61
|
+
|
43
62
|
### Ubuntu
|
44
63
|
|
45
|
-
|
64
|
+
The main steps are:
|
65
|
+
- Pair your computer and the Pebble
|
66
|
+
- Map your device to a port
|
67
|
+
- Use a socket to serial connection to map a TCP socket to the local port
|
68
|
+
- Connect to the device via Artoo
|
69
|
+
|
70
|
+
You will need to pair with the Pebble, entering any needed password.
|
71
|
+
|
72
|
+
Then you can find the Bluetooth address, for example `00:18:33:86:37:8B`, by using the `artoo connect scan` command:
|
73
|
+
|
74
|
+
```
|
75
|
+
$ artoo connect scan
|
76
|
+
```
|
77
|
+
|
78
|
+
Once you know the address, you can use the `artoo connect bind` command to map a port to the device:
|
46
79
|
|
47
80
|
```
|
48
|
-
|
49
|
-
sudo chmod 666 /dev/rfcomm0
|
81
|
+
artoo connect bind 00:18:33:86:37:8B pebble
|
50
82
|
```
|
83
|
+
|
84
|
+
Now you are ready to connect to the Pebble using a socket, in this example port 4567:
|
85
|
+
|
86
|
+
```
|
87
|
+
artoo connect socat 4567 pebble
|
88
|
+
```
|
89
|
+
|
90
|
+
### Windows
|
91
|
+
|
92
|
+
Instructions go here...
|
data/artoo-pebble.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_runtime_dependency 'artoo', '~> 1.0.0.
|
22
|
+
s.add_runtime_dependency 'artoo', '~> 1.0.0.rc2'
|
23
23
|
s.add_runtime_dependency 'hybridgroup-pebblewatch', '~> 0.1.2'
|
24
24
|
s.add_development_dependency 'minitest', '~> 5.0'
|
25
25
|
s.add_development_dependency 'minitest-happy'
|
data/lib/artoo/drivers/pebble.rb
CHANGED
@@ -5,7 +5,9 @@ module Artoo
|
|
5
5
|
# The pebble driver behaviors
|
6
6
|
class Pebble < Driver
|
7
7
|
|
8
|
-
COMMANDS = [:set_nowplaying_metadata
|
8
|
+
COMMANDS = [:ping, :notification_sms, :notification_email, :set_nowplaying_metadata,
|
9
|
+
:get_versions, :get_installed_apps, :remove_app, :get_time, :set_time,
|
10
|
+
:system_message, :reset]
|
9
11
|
|
10
12
|
# Start driver and any required connections
|
11
13
|
def start_driver
|
data/lib/artoo-pebble/version.rb
CHANGED
metadata
CHANGED
@@ -1,92 +1,81 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artoo-pebble
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.1.1
|
4
|
+
version: 1.0.0.pre
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ron Evans
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-26 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: artoo
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
|
-
none: false
|
17
16
|
requirements:
|
18
17
|
- - ~>
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.0.0.
|
21
|
-
prerelease: false
|
22
|
-
name: artoo
|
19
|
+
version: 1.0.0.rc2
|
23
20
|
type: :runtime
|
21
|
+
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.0.0.
|
26
|
+
version: 1.0.0.rc2
|
30
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: hybridgroup-pebblewatch
|
31
29
|
requirement: !ruby/object:Gem::Requirement
|
32
|
-
none: false
|
33
30
|
requirements:
|
34
31
|
- - ~>
|
35
32
|
- !ruby/object:Gem::Version
|
36
33
|
version: 0.1.2
|
37
|
-
prerelease: false
|
38
|
-
name: hybridgroup-pebblewatch
|
39
34
|
type: :runtime
|
35
|
+
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 0.1.2
|
46
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
47
43
|
requirement: !ruby/object:Gem::Requirement
|
48
|
-
none: false
|
49
44
|
requirements:
|
50
45
|
- - ~>
|
51
46
|
- !ruby/object:Gem::Version
|
52
47
|
version: '5.0'
|
53
|
-
prerelease: false
|
54
|
-
name: minitest
|
55
48
|
type: :development
|
49
|
+
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '5.0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest-happy
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
64
|
-
none: false
|
65
58
|
requirements:
|
66
|
-
- -
|
59
|
+
- - '>='
|
67
60
|
- !ruby/object:Gem::Version
|
68
61
|
version: '0'
|
69
|
-
prerelease: false
|
70
|
-
name: minitest-happy
|
71
62
|
type: :development
|
63
|
+
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
70
|
+
name: mocha
|
79
71
|
requirement: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
72
|
requirements:
|
82
73
|
- - ~>
|
83
74
|
- !ruby/object:Gem::Version
|
84
75
|
version: 0.14.0
|
85
|
-
prerelease: false
|
86
|
-
name: mocha
|
87
76
|
type: :development
|
77
|
+
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ~>
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -98,68 +87,44 @@ executables: []
|
|
98
87
|
extensions: []
|
99
88
|
extra_rdoc_files: []
|
100
89
|
files:
|
101
|
-
-
|
102
|
-
|
103
|
-
-
|
104
|
-
|
105
|
-
-
|
106
|
-
|
107
|
-
-
|
108
|
-
|
109
|
-
-
|
110
|
-
|
111
|
-
-
|
112
|
-
|
113
|
-
-
|
114
|
-
|
115
|
-
-
|
116
|
-
|
117
|
-
-
|
118
|
-
ZXhhbXBsZXMvaGVsbG9fcGViYmxlLnJi
|
119
|
-
- !binary |-
|
120
|
-
ZXhhbXBsZXMvbWVkaWFfY29udHJvbC5yYg==
|
121
|
-
- !binary |-
|
122
|
-
bGliL2FydG9vLXBlYmJsZS5yYg==
|
123
|
-
- !binary |-
|
124
|
-
bGliL2FydG9vLXBlYmJsZS92ZXJzaW9uLnJi
|
125
|
-
- !binary |-
|
126
|
-
bGliL2FydG9vL2FkYXB0b3JzL3BlYmJsZS5yYg==
|
127
|
-
- !binary |-
|
128
|
-
bGliL2FydG9vL2RyaXZlcnMvcGViYmxlLnJi
|
129
|
-
- !binary |-
|
130
|
-
dGVzdC9hZGFwdG9ycy9wZWJibGVfYWRhcHRvcl90ZXN0LnJi
|
131
|
-
- !binary |-
|
132
|
-
dGVzdC9kcml2ZXJzL3BlYmJsZV9kcml2ZXJfdGVzdC5yYg==
|
133
|
-
- !binary |-
|
134
|
-
dGVzdC90ZXN0X2hlbHBlci5yYg==
|
90
|
+
- .gitignore
|
91
|
+
- .travis.yml
|
92
|
+
- Gemfile
|
93
|
+
- Gemfile.lock
|
94
|
+
- LICENSE
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- artoo-pebble.gemspec
|
98
|
+
- examples/hello_pebble.rb
|
99
|
+
- examples/media_control.rb
|
100
|
+
- lib/artoo-pebble.rb
|
101
|
+
- lib/artoo-pebble/version.rb
|
102
|
+
- lib/artoo/adaptors/pebble.rb
|
103
|
+
- lib/artoo/drivers/pebble.rb
|
104
|
+
- test/adaptors/pebble_adaptor_test.rb
|
105
|
+
- test/drivers/pebble_driver_test.rb
|
106
|
+
- test/test_helper.rb
|
135
107
|
homepage: https://github.com/hybridgroup/artoo-pebble
|
136
108
|
licenses: []
|
109
|
+
metadata: {}
|
137
110
|
post_install_message:
|
138
111
|
rdoc_options: []
|
139
112
|
require_paths:
|
140
113
|
- lib
|
141
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
-
none: false
|
143
115
|
requirements:
|
144
|
-
- -
|
116
|
+
- - '>='
|
145
117
|
- !ruby/object:Gem::Version
|
146
|
-
segments:
|
147
|
-
- 0
|
148
118
|
version: '0'
|
149
|
-
hash: 2002549777813010636
|
150
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
-
none: false
|
152
120
|
requirements:
|
153
|
-
- -
|
121
|
+
- - '>'
|
154
122
|
- !ruby/object:Gem::Version
|
155
|
-
|
156
|
-
- 0
|
157
|
-
version: '0'
|
158
|
-
hash: 2002549777813010636
|
123
|
+
version: 1.3.1
|
159
124
|
requirements: []
|
160
125
|
rubyforge_project: artoo-pebble
|
161
|
-
rubygems_version:
|
126
|
+
rubygems_version: 2.0.3
|
162
127
|
signing_key:
|
163
|
-
specification_version:
|
128
|
+
specification_version: 4
|
164
129
|
summary: Artoo adaptor and driver for Pebble smart watch
|
165
130
|
test_files: []
|