co2monitor

Node for the Dostmann CO2 Monitor mini. If there are permission errors on LIBUSB, you have to add a new file to '/etc/udev/rules.d' with the following record SUBSYSTEM=="usb", MODE="0660", GROUP="plugdev"

Usage no npm install needed!

<script type="module">
  import co2monitor from 'https://cdn.skypack.dev/co2monitor';
</script>

README

this is a node for the DOSTMANN AirCO2ntrol Mini based on code by henryk ploetz, who has reverse engineered the protocol.

On error "LIBUSB_ERROR_ACCESS" (only on linux systems) you have to add a new UDEV rule in /etc/udev/rules.d

for example:

filename: 99-co2Monitor.rules

content: SUBSYSTEM=="usb", MODE="0660", GROUP="plugdev" SUBSYSTEM=="hidraw", ATTRS{idVendor}=="04d9", ATTRS{idProduct}=="a052", MODE="0660", GROUP="plugdev", SYMLINK+="CO2Monitor"

------- Release Notes ------- Version: 1.0.4 - added Output 5 => this will output a payload message with all values Version: 1.0.3 - events will only be fired on value changes