Skip to main content

InfluxDB handler module for iotrelay

Project description

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

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.7.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iotrelay_influxdb-1.7.0-py2.py3-none-any.whl (6.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file iotrelay-influxdb-1.7.0.tar.gz.

File metadata

File hashes

Hashes for iotrelay-influxdb-1.7.0.tar.gz
Algorithm Hash digest
SHA256 433d1038279af65980e62fd1b9e02c299849094945b799fd65d463e88012a3a9
MD5 c40b28856c9cf7e13e0127f5b390659c
BLAKE2b-256 535e4b387c15d7a98611e7feac3cfbeda75ed693122a2b3190e0aa2c9d1ec2f2

See more details on using hashes here.

File details

Details for the file iotrelay_influxdb-1.7.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for iotrelay_influxdb-1.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 70128909b1a2864e10b6584ee8ea4f59bfe9194bd7caf1e57da6a84a0b07dc9e
MD5 f61531f5fd477f88642fca05c52a4576
BLAKE2b-256 646ea64e5665f4ebe8232c93937ffb204f88f15df10df46762d2344fcd25822b

See more details on using hashes here.

Supported by

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