Skip to content

Gateway from airrohr firmware to domoticz virtual sensor devices

Notifications You must be signed in to change notification settings

joba-1/airrohr2domoticz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Gateway from airrohr firmware to domoticz virtual sensor devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published