forked from original version: https://github.com/fabio-miranda/csv-to-influxdb
fixes/improvements:
added features:
--dryrun switch: Do not change anything in the DB. Also enables --showdata.
--showdata switch: Print detailed information to the console what will be done with the data (or is intended to, when using --dryrun).
--tspass (or -tp) switch: do not convert timestamps, instead pass them as they are in the csv (for use i.e. with csv exports made with Chronograf, when timestamps are for sure already in an InfluxDB compatible format)
--datatypes parameter: Force data type for each column specified in the --fieldcolumns parameter. The following data types can be specified: int, float, string usage example: --fieldcolumns temperature,humidity,barometer --datatypes temperature=float,humidity=int,barometer=float
allow to specify to which retention policy the data should be imported. specify with --dbname database.retentionpolicy as you would in InfluxQL. I missed that possibility when importing old, already aggregated data which I didn´t want to be in the default RP.