Plug-in Overview

This plug-in enables your app to discover sleep state information provided by a Zeo Mobile Sleep Management System that is connected to the user’s device using Bluetooth. The plug-in provides a rich variety of sleep time, phase and quality information, as well as hardware information for the Zeo headband sensor.

  • Plug-in ID: org.ambientdynamix.contextplugins.zeo

Supported Context Types

Context Types Privacy Risk Level Data Types Description
<PLUGID>.headband.state LOW IZeoHeadbandStatus Represents information about a Zeo mobile headband.
<PLUGID>.sleep.records HIGH IZeoSleepRecords Represents sleep record information.
Descriptions of the data types above can be found in the JavaDocs at the end of this page.

Web App Usage

Integrate Dynamix into your Web app, as described here.

Add context support as follows:

And

Once your app receives the associated context support added events, you can then query for data as follows:

See the JavaDocs below for details on the available context event data. Context events can be handled like this in your Web app’s dynamix_listener.js file as follows:

Native App Usage

Integrate Dynamix into your native app, as described here.

Add context support as follows:

And

Once your app receives the associated context support added events, you can then query for data as follows:

[DataType JAR Download data-type-download=””]

Context events can be handled like this:

[Context Info Blurb context-info-blurb=””]

Code

https://bitbucket.org/ambientlabs/sleep-state-plug-in