Recording RPICT Serial stream on local file

From lechacal
Revision as of 12:45, 11 February 2019 by Administrator (talk | contribs) (Created page with " We are proposing a basic script template which can be installed as below. wget lechacal.com/RPICT/tools/lcl-gateway.py.zip unzip lcl-gateway.py.zip wget lechacal.com/RP...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


We are proposing a basic script template which can be installed as below.

wget lechacal.com/RPICT/tools/lcl-gateway.py.zip
unzip lcl-gateway.py.zip
wget lechacal.com/RPICT/tools/gateway.conf
sudo apt-get install python-requests

Edit the gateway.conf file to reflect your own setting.

nano gateway.conf

In this file you should turn off Emoncms and Influxdb.

[system]
port=/dev/ttyAMA0
baud=38400

[emoncms]
enabled = False
hostname = emoncms.org
apikey = --apikey-from-emoncms-goes-here--
node = 20

[influxdb]
enabled = False
url = http://lenovo:8086/write   # https://corlysis.com:8086/write
dbname = mydb
user = token
passwd = -optional-password-goes-here----
measurement = rpict3t1           # Modify this to match your board

[localsave]
enabled = False
directory = /tmp/


Insert the RPICT and run

./lcl-gateway.py