SleepIQ API

Java API for SleepIQ Connected Mattress

Лицензия

Лицензия

Группа

Группа

org.syphr
Идентификатор

Идентификатор

sleepiq-api
Последняя версия

Последняя версия

0.3.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

SleepIQ API
Java API for SleepIQ Connected Mattress
Ссылка на сайт

Ссылка на сайт

https://github.com/syphr42/libsleepiq-java
Организация-разработчик

Организация-разработчик

Syphr
Система контроля версий

Система контроля версий

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

Скачать sleepiq-api

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
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)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
0.3.0
0.2.0
0.1.0