Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 34 lines (22 sloc) 0.91 kb
c0c0118 Tim Pope Initial commit
authored
1 = Zerbo
2
3 Interface with the Zeo Personal Sleep Coach over USB with Ruby.
4
5 == Prerequisites
6
7 * Depends on ruby-serialport, which is currently limited to Ruby 1.8.
8
9 * Requires constructing your own USB cable. See
10 http://zeorawdata.sourceforge.net/starting.html for details. You may need to
11 install the drivers from http://www.ftdichip.com/Drivers/VCP.htm as well.
12
13 * You may have to do some source diving, as the documentation is basically
14 limited to this file (don't worry, the source is pretty short, too).
15
16 == Usage
17
18 zeo = Zerbo.connect('/dev/zeo')
19
20 On OS X, the device you want can probably be found in
21 <tt>/dev/tty.usbserial*</tt>. On Linux, look at <tt>/dev/ttyUSB*</tt>. I
22 can't speak for Windows, but the Python library works there, so presumably
23 Zerbo can be made to work as well.
24
25 zeo.on_sleep_stage do |stage|
26 puts stage
27 end
28
29 zeo.on_event do |event|
30 p event
31 end
32
33 zeo.run
Something went wrong with that request. Please try again.