Skip to content

Applied Sensors indor air quality (iAM) (VOC) sensor for the USB port using libusb.

License

Notifications You must be signed in to change notification settings

sieren/iam-voc-monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Applied Sensors indor air quality (iAM) (VOC) sensor for the USB port using libusb.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%