diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-21 18:07:44 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-21 18:07:44 +0100 |
commit | ac03535bc7d08c4fc05c19eda6271e92b6558e41 (patch) | |
tree | ed33830b5fb6740ca80ba408a113ca944d0906ef /README-apps.md | |
parent | f12bef0c3696f87c55210557fb3b056284e82494 (diff) | |
download | ble-toys-ac03535bc7d08c4fc05c19eda6271e92b6558e41.tar.gz ble-toys-ac03535bc7d08c4fc05c19eda6271e92b6558e41.tar.bz2 ble-toys-ac03535bc7d08c4fc05c19eda6271e92b6558e41.tar.xz ble-toys-ac03535bc7d08c4fc05c19eda6271e92b6558e41.zip |
o Dropping empty samples when looking for an end sample.
Diffstat (limited to 'README-apps.md')
-rw-r--r-- | README-apps.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/README-apps.md b/README-apps.md new file mode 100644 index 0000000..f9c3753 --- /dev/null +++ b/README-apps.md @@ -0,0 +1,16 @@ +Example pipeline that adds an absolute timestamp and converts to CSV. + + sample-timestamp --input log.txt --relative-name now | \ + sample-convert --output-format csv > log.csv + +Example input: + + analog=251, dry=0, pumping_water=0, last_watering_started=234, last_watering_stopped=235, now=346 + +Example output: + + now,analog,dry,pumping_water,last_watering_started,last_watering_stopped,timestamp + 346,251,0,0,234,235,1425594335 + 347,249,0,0,234,235,1425594336 + 348,248,0,0,234,235,1425594337 + 349,245,0,0,234,235,1425594338 |