Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 1.48 KB

README.md

File metadata and controls

42 lines (23 loc) · 1.48 KB

Airrohr2Domoticz

Gateway for airrohr api values to domoticz device indexes

Example call

Given you have

  • airrohr firmware configured to post "An eigene Api senden" to port 7110 on the server running this script (Path not relevant)
  • domoticz running on localhost and listening at port 8888
  • you defined two custom virtual sensor devices in domoticz. They got indexes 19 for PM10 and 18 for PM2.5

Then call the script like this

./airrohr2domoticz.py 7110 localhost:8888 SDS_P1=19 SDS_P2=18

Customization

You can use other value_types from the airrohr api json on the command line if you like. Just open url http://{yourAirrohrIp}/data.json to see which values are available on your device.

Installation

Adapt OPTIONS in ./airrohr2domoticz.env to match your setup (or you can adapt it later in /etc/default/). Then call the installation script (tested with opensuse 42.2)

sudo ./install.sh

It is assumed your os uses systemd. It is further assumed, domoticz is already installed (at least user and group domoticz must exist).

Documentation on Airrohr firmware and Domoticz