/tfa-airco2ntrol-mini

(fork) Cross-platform Python logger for TFA Dostmann Airco2ntrol Mini CO2 monitor relying on HIDAPI

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Cross-platform Python logger for TFA Dostmann Airco2ntrol Mini CO2 monitor (31.5006.02) relying on HIDAPI library.

Prerequisites

This project needs:

Linux

See what package your distribution provides for the HIDAPI library.

macOS

The HIDAPI library may be easily installed on macOS with Homebrew:

brew install hidapi

Getting stared

Just 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.

Troubleshooting

udev rules on Linux

If the script cannot access the device, update your system's udev rules as follow:

  1. Unplug the device
  2. Copy file 90-airco2ntrol_mini.rules to /etc/udev/rules.d
  3. Reload the rules with sudo udevadm control --reload-rules
  4. Plug your device.

matplotlib on macOS

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

Credits

Henryk Plötz was the first reverse engineer TFA Dotsmann CO2 monitors. Give a look at his project.