JSPM

seneca-losant

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q16438F
  • License MIT

Seneca plugin for interacting with Losant API

Package Exports

  • seneca-losant

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (seneca-losant) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.