From 431daa1e55339279515845fb708d9a299672012c Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Wed, 31 May 2017 08:44:15 +0200 Subject: [PATCH] rough readme --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 7c03abe..c8ee760 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,13 @@ Helpers to write CSV files from https://www.madavi.de/sensor/csvfiles.php to your InfluxDb. + +# How does it work + +* get the relevant CSVs from https://www.madavi.de/sensor/csvfiles.php +* 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 | ./toLineProtocol.sh | ./toInfluxDb.sh` + +I should advise you to backup the DB first :stuck_out_tongue: