maddindeiss / co2-monitor Goto Github PK
View Code? Open in Web Editor NEWMeasure CO2 and temperature in nodejs with the TFA-Dostmann AirControl Mini
License: MIT License
Measure CO2 and temperature in nodejs with the TFA-Dostmann AirControl Mini
License: MIT License
Disclaimer: I got a device sent for free to test its USB capabilities and develop some example code.
With just a few changes the AirCO2NTROL Coach can become compatible as well.
In addition to the CO2 concentration and temperature, it also measures the relative humidity.
I've forked this library to adapt it to the Coach. A next step would be to restore the compatibility with the Mini.
Code changes for compatibility with the Coach:
https://gitlab.com/jaller94/node-co2-monitor/commit/6d3ca1dbe185b373e22e696546943e4305d1cbf7
To tell them apart one can test this._device.deviceDescriptor.bcdDevice
. The Mini's number is 256 (0x0100 for version 1.00) and the Coach's number is 512 (0x0200 for version 2.00).
Other than the Mini's data, the Coach's data does not need to be decrypted.
The co2monitor module works perfect on my Windows System, and i can aquire data from my aircontrol mini Monitor. When i try to use it on my Raspberry Pi 2 it always throws an error that say "Error while connecting to device! ERROR: LIBUSB_ERROR_BUSY" The error gets thrown in the file co2monitor.js in line 61, which is in the connectToDevice function.
The Raspberry recognizes that the aircontrol mini Monitor is plugged in, when i type lsusb, the Monitor is listed, and when i replug it, the device number enumerates.
Any suggestions how to fix this Problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.