Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

arosequist/node-owlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-owlet

Node wrapper for the Owlet API

Legal

This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Owlet Baby Care or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk.

Installation

$ npm install --save @arosequist/owlet

Usage

import { connect } from '@arosequist/owlet';

async function run() {
    const owlet = await connect('my@email.com', 'my-owlet-password');

    const devices = await owlet.getDevices();
    const deviceId = devices[0].id;

    const {
        babyName,
        isBaseStationOn,
        batteryLevel, // percentage, 0-100
        isCharging,
        isSockOff,
        isSockConnected,
        isWiggling,
        heartRate,
        oxygenLevel
    } = await owlet.getProperties(deviceId);

    await owlet.turnBaseStationOn(deviceId);
    await owlet.turnBaseStationOff(deviceId);
};

About

Node wrapper for the Owlet API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published