iam-voc-monitor

1.0.0 • Public • Published

iam-voc-monitor

This is a node module for the iAM USB indor air quality monitor built by Applied Sensors but distributed under many different brands (e.g. Voltcraft CO-20 Rehau).

Requirements

Needs libusb support (depends on node usb module). Tested on Linux only so far.

Usage

let voc = new iAMVOCMonitor();

voc.on("connected", (device) => {
    console.log("connected");
});

voc.on("error", (error) => {
    console.log(error);
});

voc.on("rawData", (date) => {
    console.log("VOC:", date);
});
voc.connect();
voc.startTransfer();

See demo.js as well.

The iAMVOCMonitor emitts three events:

  • error: If a (non-fatal) error occurs during data reads. Passed the error.
  • connected: After calling connect() when connected. Passed the libusb device.
  • rawData: Emitted when data is read from the sensor. Passed a Number with mesured value. Values range from 450 to 2000 and are measured in ppm (parts per million) equivalent.

License

BSD Licensed. Look at Licence file for details.

Package Sidebar

Install

npm i iam-voc-monitor

Weekly Downloads

4

Version

1.0.0

License

BSD

Last publish

Collaborators

  • mrtoto