This commit is contained in:
Thomas Ruoff
2020-01-10 21:21:04 +00:00
committed by GitHub
parent 9d31b84e6b
commit 1aebb3e2c6

View File

@@ -11,6 +11,6 @@ You can use this to fill up your local InfluxDB with previous data or fill data
* delete all lines that you already have in your DB (you must keep the csv header line) * delete all lines that you already have in your DB (you must keep the csv header line)
* export settings as environment vars in case they differ from the defaults * export settings as environment vars in case they differ from the defaults
(INFLUXDB_HOST, INFLUXDB_PORT, INFLUXDB_DATABASE, SENSOR_ID) (INFLUXDB_HOST, INFLUXDB_PORT, INFLUXDB_DATABASE, SENSOR_ID)
* run `cat <file1.csv> [file2.csv...] | ./to_line_protocol.py | ./to_influx_db.sh` * run `cat <file1.csv> | ./to_line_protocol.py | ./to_influx_db.sh`
I should advise you to backup the DB first :stuck_out_tongue: I should advise you to backup the DB first :stuck_out_tongue: