项目作者: dhogborg

项目描述 :
Converts netatmo csv exports to InfluxDB line format
高级语言: JavaScript
项目地址: git://github.com/dhogborg/netoflux.git
创建时间: 2016-04-16T20:33:52Z
项目社区:https://github.com/dhogborg/netoflux

开源协议:

下载


netoflux

Takes a netatmo csv export file and converts it to line format for insertion into InfluxDB

Currently you have to remove the first 2 lines of the export file so that the first line is the header row with column titles.

Example csv lines

  1. Timestamp;"Timezone : Europe/Berlin";Temperature;Humidity;CO2
  2. 1460483334;"2016/04/12 19:48:54";24;37;
  3. 1460483592;"2016/04/12 19:53:12";24.6;35;
  1. node index.js Indoor_160507.csv -t module=Indoor > bed.lines

Output

  1. temperature,module=Indoor value=24 1460483334000000000
  2. humidity,module=Indoor value=37 1460483334000000000
  3. temperature,module=Indoor value=24.6 1460483592000000000
  4. humidity,module=Indoor value=35 1460483592000000000
  5. temperature,module=Indoor value=24.5 1460483643000000000
  6. humidity,module=Indoor value=35 1460483643000000000
  7. co2,module=Indoor value=1133 1460483643000000000

Options

  1. -t a_tag_key=the_tag_value

As many -t as you want can be added