Example Using InfluxDB: Difference between revisions

From lechacal
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


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.
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.
==Prerequisites==


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


==Installation==
==Installation==
Line 25: Line 27:
  import influxdb
  import influxdb
  print influxdb.__version__
  print influxdb.__version__
==Prerequisites==
The RPICT series board must output as CSV for this work.

Revision as of 13:03, 22 March 2017


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.

Prerequisites

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

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__