Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 2.03 KB

README.md

File metadata and controls

36 lines (19 loc) · 2.03 KB

Purpose

  • This program interfaces with a Dylos DC1100 air quality monitor and reports the large and small particle count to openHAB each minute.

Features

  1. Integration with openHAB via its RESTful API. On the openHAB side, you can react accordingly to changes in air quality, such as send yourself a push notification warning of bad air quality.

HOWTO

What You Need

Installation and Configuration

  • Add these items to your openHAB installation's main items file, optionally adding them to an item group if you prefer:

Number Small_Particles "Small Air Particles [%d]" <climate> Number Large_Particles "Large Air Particles [%d]" <climate>

  • Install dc1100.sh to your computer and run chmod +x on it to make it executable. Alternatively, if you are familiar with ansible, you will find an ansible configuration for installing and auto-running the software on a Raspberry Pi.

  • Edit dc1100.sh and change the values of OPENHAB_URL to match your openHAB configuration.

  • Connect your computer to your DC1100 with your serial-to-USB converter cable.

  • Run ls -tr /dev/tty* | tail -1. You should see a filename like /dev/ttyUSB0. This is the device file for the DC1100 on your computer.

  • If you know that this is your only attached tty device, you can just run ./dc1100.sh, and it will auto-discover your device. Otherwise, you may pass a parameter to force the device file selection. For example, to use /dev/ttyUSB1, run ./dc1100.sh -p /dev/ttyUSB1