Skip to main content

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.

Metadata

Release files for iotrelay-influxdb 1.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iotrelay-influxdb 1.7.0
File Size Uploaded
iotrelay-influxdb-1.7.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iotrelay-influxdb 1.7.0
File Interpreter ABI Platform
iotrelay_influxdb-1.7.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 10.4 kB

Release files / iotrelay-influxdb-1.7.0.tar.gz

Download URL iotrelay-influxdb-1.7.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
433d1038279af65980e62fd1b9e02c299849094945b799fd65d463e88012a3a9
BLAKE2b-256 checksum
How to use checksums
535e4b387c15d7a98611e7feac3cfbeda75ed693122a2b3190e0aa2c9d1ec2f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / iotrelay_influxdb-1.7.0-py2.py3-none-any.whl

Download URL iotrelay_influxdb-1.7.0-py2.py3-none-any.whl
Size 6.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
70128909b1a2864e10b6584ee8ea4f59bfe9194bd7caf1e57da6a84a0b07dc9e
BLAKE2b-256 checksum
How to use checksums
646ea64e5665f4ebe8232c93937ffb204f88f15df10df46762d2344fcd25822b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.7.0 This release

2 release files

1.6.0

2 release files

1.5.1

3 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.2

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page