# NodePlugwise

> A Node module to interact with Plugwise equipment

Latest version **1.0.8** (published 2016-12-27) · 0 weekly downloads

## Install

```sh
npm install NodePlugwise
pnpm add NodePlugwise
yarn add NodePlugwise
bun add NodePlugwise
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2016-12-27 |
| First published | 2016-09-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Paul Alcock |
| Maintainers | coximus |

## Links

- npm: https://www.npmjs.com/package/NodePlugwise
- Repository: https://github.com/coximus/nodeplugwise
- Homepage: https://github.com/coximus/nodeplugwise#readme
- Issues: https://github.com/coximus/nodeplugwise/issues
- npm.io page: https://npm.io/package/NodePlugwise

## Dependencies (3)

- [crc](https://npm.io/package/crc.md) ^3.4.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.0.5
- [serialport](https://npm.io/package/serialport.md) ~2.0.0

## Recent versions

- 1.0.8 (latest) — 2016-12-27
- 1.0.7 — 2016-10-18
- 1.0.6 — 2016-09-04
- 1.0.5 — 2016-09-04
- 1.0.4 — 2016-09-04
- 1.0.3 — 2016-09-03
- 1.0.2 — 2016-09-03
- 1.0.1 — 2016-09-01
- 1.0.0 — 2016-09-01

## README

# Node Plugwise
A Node module to interact with Plugwise equipment

## Installation

via [npm (node package manager)](http://github.com/isaacs/npm)

    $ 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

---
_Source: https://npm.io/package/NodePlugwise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
