npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

plugwisejs

v0.5.3

Published

Plugwise API for nodejs

Readme

plugwisejs

Plugwise API for nodejs

The basic idea for this API is simply to make controllign your appliances as intuitive as possible. There will be much more info coming soon, but for now this is basically how you use it:

// use this module
var plugwiseApi = require('plugwisejs');

// enter and connect to your plugwise stick by entering its location
// on your system (this example is for the mac, on unix it
// would  be something more like /dev/ttyUSB0).
var plugwise = plugwiseApi.init({log: 1, serialport: '/dev/tty.usbserial-A8005W6k'});

// create an instance of your appliance by entering its MAC address
var lamp = plugwise('000Dxxxxxxxxxxx');

// turn it off
lamp.poweroff();

commands

The following are the current commands that work.

Begin with:

var plugwiseApi = require('plugwisejs');
var plugwise = plugwiseApi.init({log: 1, serialport: '/dev/tty.usbserial-A8005W6k'});
var circle = plugwise('000Dxxxxxxxxxxx');

Turn a circle off

circle.poweroff(callback)

Turn a circle on

circle.poweron(callback)

Get basic info from a circle, such as if it is on and what time the internal clock is set to

circle.info(callback({relay: [boolean], clock: [date]});

Set the circles clock

circle.setclock(date, callback);

Get current power consumtion

circle.powerinfo(callback({watt: [number], kWh: [number], pulses: [number] }));

Read the power buffer

// Returns todays power consumtion as an array of dates and {watt: [number], kWh: [number], pulses: [number] }
circle.powerbufferinfo(callback([array]);

// Returns the amount of hours back in time of  power consumtion as an array of dates and {watt: [number], kWh: [number], pulses: [number] }
circle.powerbufferinfo([number], callback([array]);

// Returns the dates power consumtion as an array of dates and {watt: [number], kWh: [number], pulses: [number] }
circle.powerbufferinfo([date], callback([array]);

// Returns the dates interval power consumtion as an array of dates and {watt: [number], kWh: [number], pulses: [number] }
circle.powerbufferinfo([[date], [date]], callback([array]);