Measuring CO2 and Temperature at TNG.
People are sensitive to high levels of CO2 or uncomfortably hot work environments. Running air conditioning makes a lot of noise, which can annoy people, too. So we want notifications on CO2 levels and temperature, to slack.
-
TFA-Dostmann AirControl Mini CO2 Messgerät -- 80 Euro
-
any Linux system with a USB port and Python 2
- install Python and dependencies (needs sudo)
make install-debian # on Ubuntu or other Debian based systems
make install-fedora # on Fedora
make install-dependencies # pip dependencies
-
You can configure this bot to automatically post to a Slack channel. Just add an "Incoming Webhook" to your Slack team's integrations and add a
slack
hash to the config file (see config.yaml.sample for the precise config file structure). -
fix socket permissions: install udev rules
make setup-udev
- run the script
make run
The configuration is named config.yaml and should be in the same directory as the script.
forked from wooga/office_weather, which in turn is based on code by henryk ploetz