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

node-owlusb

v0.1.3

Published

Node.JS library for communicating with Owl +USB CM160 energy monitoring and analysis devices

Readme

Owl +USB Library for Node.JS

Node.JS library for communicating with Owl +USB CM160 energy monitoring and analysis devices. Live energy data is collected from the device (produced about once per minute) and converted to JSON.

This work is heavily influenced by Philippe Cornet's C library eagle-owl.

Driver

The OWL+USB uses a Silicon Labs CP210x USB to UART bridge that typically requires a kernel mode driver to interface with it, largely limiting options for linux. This library instead makes use of the libusb library and my fork of the cp2102 library, to interface with the device in user mode. This therefore does require some dependencies to be installed.

Linux

  • Install dependencies using a package manger e.g. sudo apt install libusb libusb-dev libudev-dev on Debian-based distros.
  • Add permissions to udev rules.
    • Create a new file such as /etc/udev/rules.d/50-owlusb.rules.
    • Add to this file - SUBSYSTEM=="usb", ATTRS{idVendor}=="0fde", ATTRS{idProduct}=="ca05", GROUP="<group>", MODE="0666" where <group> is the username or group of the user executing the application.
    • Reload udev rules - udevadm control --reload-rules

macOS

Install using a package manger e.g. Homebrew sudo brew install libusb or macports sudo port install libusb.

Windows

On Windows you must install libusb per device using Zadig.

WSL2

I have not had much success in installing libusb under Windows 10's WSL2. Hyper-V, WSL2's underlying hypervisor, lacks support for Host USB pass-through to VMs.

Purely speculating, you may be able to lash something together using USB/IP or Microsoft's VMConnect

Usage

  • Install libusb as described in the driver section.
  • Add node-owlusb to your dependencies in package.json
  • Run npm install
  • Use the following code snippet:
const OwlUSB = require('node-owlusb')

const owlUSB = new OwlUSB();
owlUSB.on('ready', () => console.log('connected'))
owlUSB.on('live', (record) => console.log(JSON.stringify(record)))

This should produce JSON similar to:

{"addr":0,"year":2021,"month":1,"day":17,"hour":10,"min":51,"cost":12.50,"amps":1.899,"watts":435,"ah":0.03,"wh":7.25,"isLiveData":true}