Skip to content

syphr42/libsleepiq-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages