skip to navigation
skip to content

Not Logged In

iotrelay-tempodb 1.0.0

TempoDB handler module for iotrelay

iotrelay-tempodb 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 TempoDB time series database. See the IoT Relay Documentation for more.

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

$ pip install iotrelay-tempodb

Before using iotrelay-tempodb an TempoDB account and database must be created. See https://tempo-db.com/ for more. Add API key and API Secret to the IOT Relay configuration file, ~/.iotrelay.cfg once they have been given by TempoDB.

[iotrelay-tempodb]
api key = your api key
api secret = your api secret

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

[iotrelay-tempodb]
reading types = power, weather
api key = your api key
api secret = your api secret

By default iotrelay-tempodb will batch 30 readings of each type before sending the batch to TempoDB. 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-tempodb section of ~/.iotrelay.cfg.

[iotrelay-tempodb]
batch size = 30
reading types = power, weather
api key = your api key
api secret = your api secret

License

Copyright © 2014, 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.

 
File Type Py Version Uploaded on Size
iotrelay-tempodb-1.0.0.tar.gz (md5) Source 2014-05-19 3KB
iotrelay_tempodb-1.0.0-py2.py3-none-any.whl (md5) Python Wheel 3.4 2014-05-19 5KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 24 downloads in the last week
  • 107 downloads in the last month