diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-22 11:14:42 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-22 11:14:42 +0100 |
commit | d76bf876d4ce8e845a8e03a48b72a4ad4761359f (patch) | |
tree | cb8e786a1cd166e92658bc8b73ed1012c6bec93b /README-apps.md | |
parent | ac03535bc7d08c4fc05c19eda6271e92b6558e41 (diff) | |
download | ble-toys-d76bf876d4ce8e845a8e03a48b72a4ad4761359f.tar.gz ble-toys-d76bf876d4ce8e845a8e03a48b72a4ad4761359f.tar.bz2 ble-toys-d76bf876d4ce8e845a8e03a48b72a4ad4761359f.tar.xz ble-toys-d76bf876d4ce8e845a8e03a48b72a4ad4761359f.zip |
o RRD output.
Diffstat (limited to 'README-apps.md')
-rw-r--r-- | README-apps.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/README-apps.md b/README-apps.md index f9c3753..228691a 100644 --- a/README-apps.md +++ b/README-apps.md @@ -14,3 +14,23 @@ Example output: 347,249,0,0,234,235,1425594336 348,248,0,0,234,235,1425594337 349,245,0,0,234,235,1425594338 + +Combining with rrdtool + + rrdtool create test.rrd --step 1 \ + --start 1425593989 \ + DS:analog:GAUGE:600:U:U \ + RRA:AVERAGE:0.5:1:864000 \ + RRA:AVERAGE:0.5:60:14400 + +Inserting values + + sample-timestamp --input log.txt --relative-name now | \ + sample-convert --output-format rrd --fields analog | \ + xargs rrdtool update test.rrd + +Graphing values + + rrdtool graph graph.png --width 1024 --height 512 \ + --start 1425593989 --end 1425991529 \ + DEF:a=test.rrd:analog:AVERAGE LINE2:a#FF0000 |