annotate README @ 10:c1892bd1460a

Handle SI unit prefixes.
author Daniel O'Connor <darius@dons.net.au>
date Thu, 21 Nov 2013 12:34:13 +1030
parents 139e267c9965
children d3b5e4251950
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
08b192a6e189 Add RRD output mode.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
1 An RRD can be created like so..
08b192a6e189 Add RRD output mode.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
2
9
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
3 rrdtool create ~/meter.rrd \
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
4 DS:import:DERIVE:600:U:U \
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
5 DS:export:DERIVE:600:U:U \
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
6 RRA:AVERAGE:0.5:1:105120 \
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
7 RRA:AVERAGE:0.5:12:105120 \
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
8 RRA:MAX:0.5:1:105120 \
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
9 RRA:MAX:0.5:12:105120 \
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
10 RRA:MIN:0.5:1:10512 \
8
08b192a6e189 Add RRD output mode.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
11 RRA:MIN:0.5:12:105120
08b192a6e189 Add RRD output mode.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
12
08b192a6e189 Add RRD output mode.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
13 Then data added with..
08b192a6e189 Add RRD output mode.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
14 rrdtool update ~/meter.rrd `ssh -ay -i ~/.ssh/id_rpi pi@raspberrypi python iec1107/iec1107.py -r /dev/ttyUSB0`
08b192a6e189 Add RRD output mode.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
15
9
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
16 Graph with..
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
17 rrdtool graph ~/html/power-day.png --start -86400 -t "Power import/export (last 24 hours)"\
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
18 DEF:import=$HOME/meter.rrd:import:AVERAGE \
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
19 DEF:export=$HOME/meter.rrd:export:AVERAGE \
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
20 AREA:import\#00FF00:"Imported (Wh)" \
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
21 LINE1:export\#0000FF:"Exported (Wh)"
139e267c9965 Use DERIVE instead of counter.
Daniel O'Connor <darius@dons.net.au>
parents: 8
diff changeset
22
8
08b192a6e189 Add RRD output mode.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
23