New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

NodePlugwise

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

NodePlugwise

A Node module to interact with Plugwise equipment

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

Node Plugwise

A Node module to interact with Plugwise equipment

Installation

via npm (node package manager)

$ npm install NodePlugwise

Usage

var Plugwise = require('NodePlugwise'),
    express = require('express'),
    app = express();

Plugwise.connect('/dev/serial-port', function(error, plugwise) {
    if(error) { return console.error(error) }
    // @Params Plug-Address, desired state (1 = on, 0 = off), callabck
    Plugwise.switchPlug('000D6F0000768D95', 1, function(error, response) {
        if (error) {
            return console.error(error);
        }
        console.log("Success", response);
    });
});

See https://github.com/Coximus/NodePlugwiseAPI as work in progress example of a RESTFul API using Express to expose NodePlugwise through a web interface

Features

As this is the first release the features are limited to the following:

  • Connecting to the Plugwise Stick
  • Switching Plugwise Circles/Circle+ on/off

Documentation

See http://paul-alcock.co.uk/node-plugwise

FAQs

Package last updated on 27 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts