Skip to content

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

License

Notifications You must be signed in to change notification settings

MathieuSchopfer/tfa-airco2ntrol-mini

Repository files navigation

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

Full logging and display

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.

Simple CLI logger

python3 log.py

If you just want to d

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages