baby-connect
v0.0.4
Published
API for communicating with Baby Connect
Downloads
15
Readme
Baby Connect API
A library for interacting with Baby Connect.
Usage
const {BabyConnect} = require('baby-connect');
const bc = new BabyConnect(
'[email protected]', 'hunter2', 'some-unique-device-id'
);
bc.getUser()
.then(user => user.kidByName('Joe'))
.then(kid => kid.startSleeping(new Date()))
.then(() => console.log('saved!'));
Supported Actions
kid.startSleeping()
kid.stopSleeping()
kid.dirtyDiaper()
kid.wetDiaper()
kid.dirtyAndWetDiaper()
kid.dryDiaper()
kid.saveStatus(Kid.Category.OTHER, 'Message here')
: other events haven't been filled out yet, but can be accessed via the constants onKid.Category
.