seneca-losant

0.1.0 • Public • Published

seneca-losant

Travis bitHound bitHound npm

Seneca plugin for interacting with Losant API

Requirements

Node.js >= v6

Install

$ npm i seneca seneca-losant

Usage

require('seneca')()
  .use(require('seneca-losant'), {
    id: 'MY_DEVICE_ID',
    key: 'API_ACCESS_KEY',
    secret: 'SECRET_KEY'
  });

Action Patterns

Send Device State to Losant

role:losant, cmd:send

Required arguments:

  • state - Object representing device state; keys should be configured in the device's settings on Lodash's site.

Optional arguments:

  • time - A Date object representing the time of the state update. Defaults to "now".

Returns undefined upon success.

License

© 2016 Christopher Hiller. Licensed MIT.

Package Sidebar

Install

npm i seneca-losant

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • boneskull