Cross-platform Python logger for TFA Dostmann Airco2ntrol Mini CO2 monitor (31.5006.02) relying on HIDAPI library.
This project needs:
- Python 3
- HIDAPI library
- hidapi Python interface
See what package your distribution provides for the HIDAPI library.
The HIDAPI library may be easily installed on macOS with Homebrew:
brew install hidapi
Run the logger script with:
python3 report.py
The script will create a log file airco2ntrol_<date>T<time>.csv
and open a plotting window. For convenience, we provide the plot.py
script to plot an existing log file.
python3 log.py
If you just want to d
If the script cannot access the device, update your system's udev rules as follow:
- Unplug the device
- Copy file
90-airco2ntrol_mini.rules
to/etc/udev/rules.d
- Reload the rules with
sudo udevadm control --reload-rules
- Plug your device.
If the plotting window does not show up, you may need to configure the matplotlib backend. Edit file ~/.matplotlib/matplotlibrc
and add or edit
backend: TkAgg
Note that you need the Python Tcl/Tk interface. You can install it with
brew install python-tk
Henryk Plötz was the first reverse engineer TFA Dotsmann CO2 monitors. Give a look at his project.