artoo-neurosky 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2a2977c68f20974a7722eb73cb6acd9dd440b49
4
- data.tar.gz: b71ff95fae2df05837c8d025f160f91b7949b9ee
3
+ metadata.gz: ba38cd17f594baf54af40f1cfc0b1d87392f6bea
4
+ data.tar.gz: 7dcae5f926b316b55e8a03ac6e03c25be67075af
5
5
  SHA512:
6
- metadata.gz: 116c01b413b5153bb3dac564dcf2b81bcf35939718234bda7dd4a6689d095a3648e97e674c6d6002c72e951262a604a090b9b70ddb86bc813cc0f2e1cab8e184
7
- data.tar.gz: 71450877d6f8714d5a5e21e759d62a8379588122b7f53f2b484fbe366ebc2ce95709c4a15a958546c0e2b68503b0c6a09ae690e09829d387ab9434f0daf6e509
6
+ metadata.gz: eb922889e91efdd6b4275787b36eb0edab753f94c660743267c87202618706272b9c07598bcdc6f369db7e8d339972a9b347db73abd1ed2983f86e3212c87ff6
7
+ data.tar.gz: e16432ef0d7138bfec4d1a22e5d9b9a41e9aae08d9547d4c364c7194ccffe26cb89603748f1f2b8a14bf27c26b21ab586686c1e3d4a53efdbcb7adea492d2cc5
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  .rvmrc
2
2
  .rbx
3
3
  pkg
4
+ Gemfile.lock
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Artoo Adaptor For Sphero
1
+ # Artoo Adaptor For Neurosky Mindwave
2
2
 
3
3
  This repository contains the Artoo (http://artoo.io/) adaptor for the Neurosky Mindwave Mobile EEG (http://store.neurosky.com/products/mindwave-mobile).
4
4
 
@@ -14,12 +14,6 @@ For more information abut Artoo, check out our repo at https://github.com/hybrid
14
14
  gem install artoo-neurosky
15
15
  ```
16
16
 
17
- Afterwards you need to install `socat` - for this please run the following command (works on both OSX and Linux):
18
-
19
- ```
20
- artoo install socat
21
- ```
22
-
23
17
  ## Using
24
18
 
25
19
  ```ruby
@@ -44,7 +38,6 @@ end
44
38
 
45
39
  The main steps are:
46
40
  - Pair your computer and the Mindwave
47
- - Use a socket to serial connection to map a TCP socket to the local unix port
48
41
  - Connect to the device via Artoo
49
42
 
50
43
  First pair your computer and Mindwave. You might be prompted for a passcode, if so enter '0000'.
@@ -55,11 +48,7 @@ Once paired, use the `artoo connect scan` command to find out your connection in
55
48
  $ artoo connect scan
56
49
  ```
57
50
 
58
- Now you are ready to connect to the Mindwave using the socket, in this example port 4567:
59
-
60
- ```
61
- artoo connect serial /dev/rfcomm0 4567
62
- ```
51
+ Now you are ready to connect to the Mindwave using a serial connection.
63
52
 
64
53
  ### Ubuntu
65
54
 
@@ -85,11 +74,7 @@ Next, you need to bind the Mindawave to the system port. In the above example, /
85
74
  artoo connect bind 00:06:66:4A:14:99 /dev/rfcomm0
86
75
  ```
87
76
 
88
- Now you are ready to connect to the Sphero using the socket, in this example port 4567:
89
-
90
- ```
91
- artoo connect serial /dev/rfcomm0 4567
92
- ```
77
+ Now you are ready to connect to the Sphero using system port.
93
78
 
94
79
  ### Windows
95
80
 
@@ -21,10 +21,5 @@ Gem::Specification.new do |s|
21
21
  s.require_paths = ["lib"]
22
22
 
23
23
  s.add_runtime_dependency 'artoo', '>= 1.6.4'
24
- s.add_runtime_dependency 'hybridgroup-mindset'
25
- # TODO: add your development dependencies here
26
- # EXAMPLE:
27
- # s.add_development_dependency 'minitest', '>= 5.0'
28
- # s.add_development_dependency 'minitest-happy'
29
- # s.add_development_dependency 'mocha', '>= 0.14.0'
24
+ s.add_runtime_dependency 'hybridgroup-mindset', '>= 0.4'
30
25
  end
@@ -4,6 +4,10 @@
4
4
 
5
5
  Event with the user's current attention level.
6
6
 
7
+ ## blink(data)
8
+
9
+ Event with the user's current blink level.
10
+
7
11
  ## meditation(data)
8
12
 
9
13
  Event with the user's current meditation level.
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Artoo
2
2
  module Neurosky
3
- VERSION = '0.1.2'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -37,27 +37,21 @@ module Artoo
37
37
  def handle_packet(packet)
38
38
  case
39
39
  when packet[:wave]
40
- publish(event_topic_name("update"), "wave", packet[:wave])
41
- publish(event_topic_name("wave"), packet[:wave])
42
-
40
+ publish(event_topic_name("wave"), packet[:wave])
41
+
43
42
  when packet[:signal_quality]
44
- publish(event_topic_name("update"), "signal_quality", packet[:signal_quality])
45
43
  publish(event_topic_name("signal_quality"), packet[:signal_quality])
46
44
 
47
45
  when packet[:attention]
48
- publish(event_topic_name("update"), "attention", packet[:attention])
49
46
  publish(event_topic_name("attention"), packet[:attention])
50
47
 
51
48
  when packet[:meditation]
52
- publish(event_topic_name("update"), "meditation", packet[:meditation])
53
49
  publish(event_topic_name("meditation"), packet[:meditation])
54
50
 
55
51
  when packet[:blink]
56
- publish(event_topic_name("update"), "blink", packet[:blink])
57
52
  publish(event_topic_name("blink"), packet[:blink])
58
53
 
59
54
  when packet[:delta]
60
- publish(event_topic_name("update"), "eeg", packet)
61
55
  publish(event_topic_name("eeg"), packet)
62
56
 
63
57
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artoo-neurosky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-07 00:00:00.000000000 Z
11
+ date: 2014-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: artoo
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '0.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '0.4'
41
41
  description: Artoo adaptor and driver for Neurosky
42
42
  email:
43
43
  - artoo@hybridgroup.com
@@ -47,14 +47,13 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - .gitignore
49
49
  - Gemfile
50
- - Gemfile.lock
51
50
  - LICENSE
52
51
  - README.md
53
52
  - Rakefile
54
53
  - artoo-neurosky.gemspec
55
54
  - docs/events_neurosky.md
56
- - example/eeg.rb
57
- - example/neuro.rb
55
+ - examples/eeg.rb
56
+ - examples/neuro.rb
58
57
  - lib/artoo-neurosky.rb
59
58
  - lib/artoo-neurosky/version.rb
60
59
  - lib/artoo/adaptors/neurosky.rb
@@ -87,3 +86,4 @@ signing_key:
87
86
  specification_version: 4
88
87
  summary: Artoo adaptor and driver for Neurosky
89
88
  test_files: []
89
+ has_rdoc:
@@ -1,55 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- artoo-neurosky (0.1.2)
5
- artoo (>= 1.6.4)
6
- hybridgroup-mindset
7
-
8
- GEM
9
- remote: http://rubygems.org/
10
- specs:
11
- artoo (1.6.4)
12
- celluloid (~> 0.15)
13
- celluloid-io (~> 0.15)
14
- http (~> 0.5)
15
- multi_json (~> 1.6)
16
- pry (~> 0.9)
17
- rake
18
- reel (~> 0.4)
19
- robeaux (~> 0.0.4)
20
- thor (~> 0.18.1)
21
- celluloid (0.15.2)
22
- timers (~> 1.1.0)
23
- celluloid-io (0.15.0)
24
- celluloid (>= 0.15.0)
25
- nio4r (>= 0.5.0)
26
- coderay (1.1.0)
27
- http (0.5.0)
28
- http_parser.rb
29
- http_parser.rb (0.6.0)
30
- hybridgroup-mindset (0.3)
31
- method_source (0.8.2)
32
- multi_json (1.9.2)
33
- nio4r (1.0.0)
34
- pry (0.9.12.6)
35
- coderay (~> 1.0)
36
- method_source (~> 0.8)
37
- slop (~> 3.4)
38
- rake (10.2.2)
39
- reel (0.4.0)
40
- celluloid (>= 0.15.1)
41
- celluloid-io (>= 0.15.0)
42
- http (>= 0.5.0)
43
- http_parser.rb (>= 0.6.0.beta.2)
44
- websocket_parser (>= 0.1.4)
45
- robeaux (0.0.4)
46
- slop (3.5.0)
47
- thor (0.18.1)
48
- timers (1.1.0)
49
- websocket_parser (0.1.6)
50
-
51
- PLATFORMS
52
- ruby
53
-
54
- DEPENDENCIES
55
- artoo-neurosky!