|
|
RRD support
|
|
|
===========
|
|
|
|
|
|
If you built your AirPi as suggested on http://airpi.es , no customization on outputs/rrd.py is needed.
|
|
|
The only thing you have to do, is adding the rrd output to your outputs.cfg:
|
|
|
|
|
|
[RRD]
|
|
|
filename=rrd
|
|
|
enabled=on
|
|
|
rrd_file=rrd/data_airpi.rrd
|
|
|
|
|
|
The parameter rrd_file points to your rrd, generated with the following commands:
|
|
|
|
|
|
rrdtool create /srv/airpi/data_airpi.rrd --step=120 \
|
|
|
DS:tempbmp:GAUGE:180:-273:5000 \
|
|
|
DS:tempdht:GAUGE:180:-273:5000 \
|
|
|
DS:press:GAUGE:180:U:U \
|
|
|
DS:humi:GAUGE:180:U:U \
|
|
|
DS:light:GAUGE:180:U:U \
|
|
|
DS:no2:GAUGE:180:U:U \
|
|
|
DS:co:GAUGE:180:U:U \
|
|
|
DS:vol:GAUGE:18:U:U \
|
|
|
RRA:AVERAGE:0.5:1:3200 \
|
|
|
RRA:AVERAGE:0.5:6:3200 \
|
|
|
RRA:AVERAGE:0.5:36:3200 \
|
|
|
RRA:AVERAGE:0.5:144:3200 \
|
|
|
RRA:AVERAGE:0.5:1008:3200 \
|
|
|
RRA:AVERAGE:0.5:4320:3200 \
|
|
|
RRA:AVERAGE:0.5:52560:3200 \
|
|
|
RRA:AVERAGE:0.5:525600:3200 \
|
|
|
RRA:MIN:0.5:1:3200 \
|
|
|
RRA:MIN:0.5:6:3200 \
|
|
|
RRA:MIN:0.5:36:3200 \
|
|
|
RRA:MIN:0.5:144:3200 \
|
|
|
RRA:MIN:0.5:1008:3200 \
|
|
|
RRA:MIN:0.5:4320:3200 \
|
|
|
RRA:MIN:0.5:52560:3200 \
|
|
|
RRA:MIN:0.5:525600:3200 \
|
|
|
RRA:MAX:0.5:1:3200 \
|
|
|
RRA:MAX:0.5:6:3200 \
|
|
|
RRA:MAX:0.5:36:3200 \
|
|
|
RRA:MAX:0.5:144:3200 \
|
|
|
RRA:MAX:0.5:1008:3200 \
|
|
|
RRA:MAX:0.5:4320:3200 \
|
|
|
RRA:MAX:0.5:52560:3200 \
|
|
|
RRA:MAX:0.5:525600:3200
|
|
|
|
|
|
For more information about rrdtool and rrds look at http://oss.oetiker.ch/rrdtool/index.en.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|