JavaScript Wrapper for the Pavlok API
You want to use your pavlok in a cool way. Its only a simple call away.
$ npm install pavlokjs
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);
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)
$ npm test