Skip to content

EastCoastProduct/pavlokjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

pavlokjs

JavaScript Wrapper for the Pavlok API

You want to use your pavlok in a cool way. Its only a simple call away.

Instalation

$ npm install pavlokjs

Usage

var pavlok = require('pavlokjs');

// id is your pavlok id
pavlok.init({objectId: id});

pavlok.shock(strength);
// you can also chain them
pavlok.beep(frequency).shock(power);

Supported pavlok functions

For vibrate and shock, value is anywehre from 0-255. For beep and blink(LED), value is anywhere from 1-4.

beep(frequency)
blink(frequency)
shock(power)
vibrate(power)

Running tests

$ npm test

Small usage exmamples

About

JavaScript Wrapper for the Pavlok API

Resources

License

Stars

Watchers

Forks

Packages

No packages published