Forward to Influxdb from RPICT: Difference between revisions
Jump to navigation
Jump to search
(Created page with "We will introduce you to our forwarding tool for Influxdb. ==Prerequisites== * Influxdb is already installed and a database has been created. * RPICT unit has been tested wit...") |
No edit summary |
||
Line 1: | Line 1: | ||
We will introduce you to | We will introduce you to the forwarding tool for Influxdb 'lcl-gateway'. | ||
==Prerequisites== | ==Prerequisites== | ||
Line 12: | Line 12: | ||
wget lechacal.com/RPICT/tools/lcl-gateway_1.3.0_armhf.deb | wget lechacal.com/RPICT/tools/lcl-gateway_1.3.0_armhf.deb | ||
sudo dpkg -i lcl-gateway_1.3.0_armhf.deb | sudo dpkg -i lcl-gateway_1.3.0_armhf.deb | ||
==Configuration== | |||
You can now edit the configuration file | |||
sudo nano /etc/lcl-gateway.conf | |||
The file looks like this | |||
[system] | |||
port=/dev/ttyAMA0 | |||
baud=38400 | |||
[emoncms] | |||
enabled = False | |||
hostname = emoncms.org | |||
apikey = --apikey-from-emoncms-goes-here-- | |||
node = 20 | |||
[influxdb] | |||
enabled = True | |||
version = 1 | |||
# Parameters for version 1 below | |||
db = home | |||
url = http://192.168.1.65:8086/write | |||
# Parameters for version 2 below | |||
#url = http://192.168.1.169:8086/api/v2/write | |||
token = NbMVAzr35B0uZehxgd_lPgVpqjDGM2-r2UF15Qd3F4D0uv-VKtVsWslH4-7vVDH1r95A-imvdqPALt1m9bW6rA== | |||
org = lcl | |||
bucket = home | |||
measurement = rpict3t1 | |||
[localsave] | |||
enabled = False | |||
directory = /tmp/ |
Revision as of 19:35, 12 August 2021
We will introduce you to the forwarding tool for Influxdb 'lcl-gateway'.
Prerequisites
- Influxdb is already installed and a database has been created.
- RPICT unit has been tested with the cat command first.
- RPICT is using the default output format number 3.
Installation
Get the lcl-gateway tool and install it this way.
wget lechacal.com/RPICT/tools/lcl-gateway_1.3.0_armhf.deb sudo dpkg -i lcl-gateway_1.3.0_armhf.deb
Configuration
You can now edit the configuration file
sudo nano /etc/lcl-gateway.conf
The file looks like this
[system] port=/dev/ttyAMA0 baud=38400 [emoncms] enabled = False hostname = emoncms.org apikey = --apikey-from-emoncms-goes-here-- node = 20 [influxdb] enabled = True version = 1 # Parameters for version 1 below db = home url = http://192.168.1.65:8086/write # Parameters for version 2 below #url = http://192.168.1.169:8086/api/v2/write token = NbMVAzr35B0uZehxgd_lPgVpqjDGM2-r2UF15Qd3F4D0uv-VKtVsWslH4-7vVDH1r95A-imvdqPALt1m9bW6rA== org = lcl bucket = home measurement = rpict3t1 [localsave] enabled = False directory = /tmp/