/office_weather

measure co2 and temperature at the TNG office

Primary LanguagePython

what & why?

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.

requirements

hardware

  1. TFA-Dostmann AirControl Mini CO2 Messgerät -- 80 Euro

  2. any Linux system with a USB port and Python 2

installation

  1. 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
  1. 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).

  2. fix socket permissions: install udev rules

make setup-udev
  1. run the script
make run

The configuration is named config.yaml and should be in the same directory as the script.

credits

forked from wooga/office_weather, which in turn is based on code by henryk ploetz

license

MIT