Skip to main content

InfluxDB handler module for iotrelay

Project description

version 1.6.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://influxdb.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

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

License

Copyright © 2016, Emmanuel Levijarvi All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iotrelay-influxdb-1.6.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

iotrelay_influxdb-1.6.0-py2.py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page