Skip to content

!MOVED TO GITLAB.COM! Plug'n'play co2 monitoring for devices with USB id 04d9:a052 - e.g. AirCO2ntrol mini

License

Notifications You must be signed in to change notification settings

nobodyinperson/co2monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project has moved to Gitlab.com

The GitHub repository here is not up-to date. Please refer to the repository on Gitlab.com for Issues, Releases and the up-to-date repository code.

co2monitor

Automatic data logging for AirCO2ntrol mini USB co2 measurement devices.

Hint: This application is compatible with Raspbian.

Note: This application is in development state.

co2monitor svg

Background

Hendryk Plötz reverse-engineered the usb protocol on hackaday.io. I wanted to have an easy-to-use plug'n'play data logging solution for Debian/Ubuntu systems. That's what co2monitor is.

Debian package

There are ready-to-use debian packages on the releases page, you may download the latest release there.

For automatic updates, you may use my apt repository.

To build a debian package from the repository, run dpkg-buildpackage -us -uc (options mean without signing) from the repository root. There will be a co2monitor_*.deb one folder layer above.

Installation

Install the debian package via sudo dpkg -i co2monitor_*.deb. Older versions of co2monitor will automatically be removed.

If you use my apt repository, install co2monitor like any other package via sudo apt-get update && sudo apt-get install co2monitor

Remove co2monitor from your system via sudo apt-get remove co2monitor.

Folder structure

The folder structure (etc,lib,usr,var) is based on the FHS and will be installed as-is to the target system.

important files

file purpose
etc/co2monitor/service.conf co2monitor service configuration file
usr/bin/co2monitor-service the co2monitor service executable
usr/bin/co2monitor the co2monitor application executable
var/lib/co2monitor/data/* standard folder for logged co2 data

Special thanks

  • Hendryk Plötz on hackaday.io for the device interaction
  • Mike Kazantsev on his blog on fraggod.net for the systemd integration
  • Ascot on StackOverflow.com for a workaround on signal.signal(signal, handler) when using a GLib.MainLoop
  • don_crissti on StackOveflow.com for getting a list of dbus objects