Skip to content

eman/iotrelay-influxdb

Repository files navigation

IoT Relay - InfluxDB

Codacy Badge

version 1.7.1

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

About

InfluxDB plugin for IoT Relay

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages