use python to speed up things

This commit is contained in:
Thomas Ruoff
2017-06-07 15:06:11 +02:00
parent 8b83833074
commit daa737fc18
2 changed files with 38 additions and 19 deletions

View File

@@ -10,6 +10,6 @@ your InfluxDb.
* delete all lines that you already have in your DB (keep the header)
* export settings as environment vars in case they differ from the defaults
(INFLUXDB_HOST, INFLUXDB_PORT, INFLUXDB_DATABASE, SENSOR_ID)
* run `cat <csv.file> | ./toLineProtocol.sh | ./toInfluxDb.sh`
* run `cat <csv.file> | ./toLineProtocol.py | ./toInfluxDb.sh`
I should advise you to backup the DB first :stuck_out_tongue: