iam-voc-monitor
v1.0.0
Published
Applied Sensors indor air quality (iAM) (VOC) sensor for the USB port using libusb
Downloads
3
Maintainers
Readme
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 callingconnect()
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.