Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.editorconfig
.gitignore
.jscsrc
.jshintrc
.travis.yml
LICENSE
README.md
package-lock.json
package.json

README.md

telldus-live-promise

NPM version Downloads Build Status

A node.js module to interface with the Telldus Live API promise style.

Before Starting

You will need:

Install

npm install telldus-live-promise

API

Setup

var config = {
  telldusPublicKey: "...",
  telldusPrivateKey: "...",
  telldusToken: "...",
  telldusTokenSecret: "..."
},
telldus = require('telldus-live-promise'),
api = telldus.API(config),
sensors = telldus.Sensors(api);
devices = telldus.Devices(api);

Sensors

Read values from all sensors

sensors.list().then(<do something useful>).catch(<log error>);

Devices

Turn off every device

devices.list().then(function(sensors){
	sensors.map(devices.turnOff);
});
You can’t perform that action at this time.