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.
Automatic data logging for AirCO2ntrol mini USB co2 measurement devices.
Hint: This application is compatible with Raspbian.
Note: This application is in development state.
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.
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.
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
.
The folder structure (etc
,lib
,usr
,var
) is based on the FHS and will be installed as-is to the target system.
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 |
- 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 aGLib.MainLoop
- don_crissti on StackOveflow.com for getting a list of dbus objects