Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Zeo Personal Sleep Coach Ruby Interface

branch: master

zerbo 0.1.0

latest commit 183ebb1f08
Tim Pope authored March 09, 2011
Octocat-spinner-32 lib zerbo 0.1.0 March 09, 2011
Octocat-spinner-32 .gitignore Initial commit March 07, 2011
Octocat-spinner-32 Gemfile Initial commit March 07, 2011
Octocat-spinner-32 MIT-LICENSE Initial commit March 07, 2011
Octocat-spinner-32 README.rdoc Initial commit March 07, 2011
Octocat-spinner-32 Rakefile Initial commit March 07, 2011
Octocat-spinner-32 zerbo.gemspec Initial commit March 07, 2011
README.rdoc

Zerbo

Interface with the Zeo Personal Sleep Coach over USB with Ruby.

Prerequisites

  • Depends on ruby-serialport, which is currently limited to Ruby 1.8.

  • Requires constructing your own USB cable. See zeorawdata.sourceforge.net/starting.html for details. You may need to install the drivers from www.ftdichip.com/Drivers/VCP.htm as well.

  • You may have to do some source diving, as the documentation is basically limited to this file (don't worry, the source is pretty short, too).

Usage

zeo = Zerbo.connect('/dev/zeo')

On OS X, the device you want can probably be found in /dev/tty.usbserial*. On Linux, look at /dev/ttyUSB*. I can't speak for Windows, but the Python library works there, so presumably Zerbo can be made to work as well.

zeo.on_sleep_stage do |stage|
  puts stage
end

zeo.on_event do |event|
  p event
end

zeo.run
Something went wrong with that request. Please try again.