Improve BodyMeasures - CSV Import

... allow "date" in ISO8601 as an alternative to "ts" timestamp from Epoch
... update documentation / provide sample files
This commit is contained in:
Joern
2017-04-08 17:40:18 +02:00
parent 514f24535d
commit f1a4f82552
7 changed files with 55 additions and 9 deletions

View File

@@ -0,0 +1,4 @@
date,weightkg,fatkg,boneskg,musclekg,leankg,fatpercent,comment
2017-01-01T12:00:00Z,2,3,4,5,6,7,Useless data - but valid format
2017-01-02T12:00:00Z,80.15,12.10,5.4,0,32.5,11.57,Test Value
2017-01-03T12:00:00Z,81.15,12.10,5.4,0,32.5,12.57,"Here the comment text contain commas itself, so it needs quotes"
1 date weightkg fatkg boneskg musclekg leankg fatpercent comment
2 2017-01-01T12:00:00Z 2 3 4 5 6 7 Useless data - but valid format
3 2017-01-02T12:00:00Z 80.15 12.10 5.4 0 32.5 11.57 Test Value
4 2017-01-03T12:00:00Z 81.15 12.10 5.4 0 32.5 12.57 Here the comment text contain commas itself, so it needs quotes

View File

@@ -0,0 +1,4 @@
ts,weightkg,fatkg,boneskg,musclekg,leankg,fatpercent,comment
1,2,3,4,5,6,7,Is a technically valid entry but the timestamp is 1 second of Epoch so it will never be in the possible time range
1479632565,80.15,12.10,5.4,0,32.5,11.57,Test Value
1479632865,81.15,12.10,5.4,0,32.5,12.57,"Here the comment text contain commas itself, so it needs quotes"
1 ts weightkg fatkg boneskg musclekg leankg fatpercent comment
2 1 2 3 4 5 6 7 Is a technically valid entry but the timestamp is 1 second of Epoch so it will never be in the possible time range
3 1479632565 80.15 12.10 5.4 0 32.5 11.57 Test Value
4 1479632865 81.15 12.10 5.4 0 32.5 12.57 Here the comment text contain commas itself, so it needs quotes