NodePlugwiseAPI

1.0.0 • Public • Published

NodePlugwiseAPI

A service which exposees a REST API to allow communication with Plugwise Equipment

Installation

via npm (node package manager)

$ npm install NodePlugwiseAPI

Usage

node index path-to-your-usb-port
e.g.
node index /dev/ttyUSB0

This will listen on port 3000.

To switch a plug on, make a GET request to: /switch/plug-address/1 e.g. http://localhost:3000/switch/000D5F0000123456/1

To switch a plug off, make a GET request to: /switch/plug-address/0 e.g. http://localhost:3000/switch/000D5F0000123456/0

Readme

Keywords

none

Package Sidebar

Install

npm i NodePlugwiseAPI

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • coximus