SleepIQ API

Java API for SleepIQ Connected Mattress

License

License

GroupId

GroupId

org.syphr
ArtifactId

ArtifactId

sleepiq-api
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

SleepIQ API
Java API for SleepIQ Connected Mattress
Project URL

Project URL

https://github.com/syphr42/libsleepiq-java
Project Organization

Project Organization

Syphr
Source Code Management

Source Code Management

https://github.com/syphr42/libsleepiq-java/tree/master

Download sleepiq-api

How to add to project

<!-- https://jarcasting.com/artifacts/org.syphr/sleepiq-api/ -->
<dependency>
    <groupId>org.syphr</groupId>
    <artifactId>sleepiq-api</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.syphr/sleepiq-api/
implementation 'org.syphr:sleepiq-api:0.3.0'
// https://jarcasting.com/artifacts/org.syphr/sleepiq-api/
implementation ("org.syphr:sleepiq-api:0.3.0")
'org.syphr:sleepiq-api:jar:0.3.0'
<dependency org="org.syphr" name="sleepiq-api" rev="0.3.0">
  <artifact name="sleepiq-api" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.syphr', module='sleepiq-api', version='0.3.0')
)
libraryDependencies += "org.syphr" % "sleepiq-api" % "0.3.0"
[org.syphr/sleepiq-api "0.3.0"]

Dependencies

compile (3)

Group / Artifact Type Version
com.eclipsesource.jaxrs : jersey-min jar 2.22.1
com.eclipsesource.jaxrs : provider-gson jar 2.3
com.google.code.gson : gson jar 2.3.1

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

SleepIQ API for Java

Build Status Maven Central

What is SleepIQ?

SleepIQ is a service provided by Select Comfort and sold as an option for Sleep Number beds. The system collects data about the bed (including individual air chamber data for dual chamber beds). This information includes whether or not a sleeper is in bed, the current sleep number setting, the pressure of the air chamber, and it's link status. This data can then be analyzed for any number of purposes, including improving sleep.

Latest release

The most recent release is SleepIQ API 0.1.0, released February 26, 2017.

To add a dependency on SleepIQ API using Maven, use the following:

<dependency>
  <groupId>org.syphr</groupId>
  <artifactId>sleepiq-api</artifactId>
  <version>0.1.0</version>
</dependency>

To add a dependency using Gradle:

dependencies {
  compile 'org.syphr:sleepiq-api:0.1.0'
}

Usage

First, create an instance:

SleepIQ sleepiq = SleepIQ.create(new Configuration().withUsername("username")
                                                    .withPassword("password"));

Next, pull data:

List<Sleeper> sleepers = sleepiq.getSleepers();
System.out.println(sleepers);

List<Bed> beds = sleepiq.getBeds();
System.out.println(beds);
for (Bed bed : beds)
{
    System.out.println(sleepiq.getPauseMode(bed.getBedId()));
}

FamilyStatus familyStatus = sleepiq.getFamilyStatus();
System.out.println(familyStatus);

Versions

Version
0.3.0
0.2.0
0.1.0