seneca-losant
v0.1.0
Published
Seneca plugin for interacting with Losant API
Downloads
1
Maintainers
Readme
seneca-losant
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
- ADate
object representing the time of the state update. Defaults to "now".
Returns undefined
upon success.
License
© 2016 Christopher Hiller. Licensed MIT.