Project

zerbo

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Build a serial cable for your Zeo and interface with it with this library.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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