Example Using InfluxDB: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 17: | Line 17: | ||
===Raspberrypi side=== | ===Raspberrypi side=== | ||
Install the python biding to influxdb. Available from [https://github.com/influxdata/influxdb-python github here]. | Install the python biding to influxdb. Available from [https://github.com/influxdata/influxdb-python 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== | ==Prerequisites== | ||
The RPICT series board must output as CSV for this work. | The RPICT series board must output as CSV for this work. |
Revision as of 13:02, 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.
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.