Example Using InfluxDB

From lechacal
Revision as of 13:02, 22 March 2017 by Administrator (talk | contribs)
Jump to navigation Jump to search


UNDER CONSTRUCTION...


This is a basic example to forward data to an InfluxDB database. Note this will only cover a skeleton to start building your own application.


Installation

Server side hosting InfluxDB

Install InfluxDB as recommended. This link provides compiled executables.

Github link is here.

Raspberrypi side

Install the python biding to influxdb. Available from github here.

Do not be tempted by using apt-get install! Thsi will install an old version that does not work. Use pip or download the package from github and install using

sudo setup.py install

Check version using

python
import influxdb
print influxdb.__version__


Prerequisites

The RPICT series board must output as CSV for this work.