iotrelay-influxdb

InfluxDB handler module for iotrelay


Keywords
influxdb IoT
License
BSD-3-Clause
Install
pip install iotrelay-influxdb==1.7.0

Documentation

IoT Relay - InfluxDB

version 1.7.0

iotrelay-influxdb is a data handler plugin for IoT Relay. It watches for data it has registered an interest in and relays it in batches to a InfluxDB time series database. See the IoT Relay Documentation for more.

iotrelay-influxdb is available on PyPI and can be installed via pip.

$ pip install iotrelay-influxdb

Before using iotrelay-influxdb a database must be created. See https://influxdata.com/ for more. to the IOT Relay configuration file, ~/.iotrelay.cfg once they have been given by InfluxDB.

[iotrelay-influxdb]
host = influxdb hostname
username = influxdb password
password = influxdb password
enable_ssl = True

The reading types to be relayed to InfluxDB should also be registered. In this example, reading types of power and weather will be relayed to InfluxDB.

[iotrelay-influxdb]
reading types = power, weather
host = influxdb hostname
username = influxdb username
password = influxdb password

By default iotrelay-influxdb will batch 30 readings of each type before sending the batch to InfluxDB. In the previous example, two separate batches would be maintained for power and weather readings. The batch size may be changed by adding the batch size option to the iotrelay-influx section of ~/.iotrelay.cfg.

[iotrelay-influxdb]
batch size = 30
reading types = power, weather
host = influxdb hostname
username = influxdb username
password = influxdb password