[rrd-users] RRD db setup for snow fall

Kevin Plew kevin at plewnet.com
Tue Oct 7 19:49:33 MEST 2003


Afternoon--
I'm having a few problems recording and graphing snow fall. My last
recorded time seems to be 12 hrs prior than it shuld be. Any tips would be
appreciated. Also, How can I display the total snowfall for the season on
a graph?
I have a rrd db setup with the following:
/usr/bin/rrdtool create ../snow.rrd --step 43200 \
DS:snow12:GAUGE:86400:0:48 \
DS:moisture:GAUGE:86400:0:5 \
DS:snowstake:GAUGE:86400:0:120 \
RRA:AVERAGE:0.5:1:288 \
RRA:AVERAGE:0.5:3:672 \
RRA:AVERAGE:0.5:6:1344 \
RRA:AVERAGE:0.5:6:17532 \
RRA:MIN:0.5:1:288 \
RRA:MIN:0.5:3:672 \
RRA:MIN:0.5:6:1344 \
RRA:MIN:0.5:6:17532 \
RRA:MAX:0.5:1:288 \
RRA:MAX:0.5:3:672 \
RRA:MAX:0.5:6:1344 \
RRA:MAX:0.5:6:17532 \

I update the db every 12 hrs from an HTML form.


I'm using the following to graph my snowfall:
/usr/bin/rrdtool graph /var/www/html/wxgraph/snow.png -s -86400
--units-exponent 0 -h 150 -w 300 -t " Inches of Snow"
DEF:snow=/var/www/html/wxgraph/snow.rrd:snow12:MAX
LINE2:snow#00FF00:"Snow"
DEF:moisture=/var/www/html/wxgraph/snow.rrd:moisture:MAX
LINE2:moisture#FF0000:"Moisture" 2>&1>/dev/null
#
#
/usr/bin/rrdtool graph /var/www/html/wxgraph/snow2.png -s -86400
--units-exponent 0 -h 150 -w 500 -t " Inches of Snow"
DEF:snow=/var/www/html/wxgraph/snow.rrd:snow12:MAX
LINE2:snow#00FF00:"Snow"
DEF:moisture=/var/www/html/wxgraph/snow.rrd:moisture:MAX
LINE2:moisture#FF0000:"Moisture Content" 2>&1>/dev/null
#
#
/usr/bin/rrdtool graph /var/www/html/wxgraph/wsnow.png -s -604800
--units-exponent 0 -h 150 -w 500 -t " Inches of Snow"
DEF:snow=/var/www/html/wxgraph/snow.rrd:snow12:MAX
LINE2:snow#00FF00:"Snow"
DEF:moisture=/var/www/html/wxgraph/snow.rrd:moisture:MAX
LINE2:moisture#FF0000:"Moisture Content" 2>&1>/dev/null
#
#
/usr/bin/rrdtool graph /var/www/html/wxgraph/msnow.png -s -2678400
--units-exponent 0 -h 150 -w 500 -t " Inches of Snow"
DEF:snow=/var/www/html/wxgraph/snow.rrd:snow12:MAX
LINE2:snow#00FF00:"Snow"
DEF:moisture=/var/www/html/wxgraph/snow.rrd:moisture:MAX
LINE2:moisture#FF0000:"Moisture Content" 2>&1>/dev/null
#
#
/usr/bin/rrdtool graph /var/www/html/wxgraph/ysnow.png -s -31536000
--units-exponent 0 -h 150 -w 500 -t " Inches of Snow"
DEF:snow=/var/www/html/wxgraph/snow.rrd:snow12:AVERAGE
LINE2:snow#00FF00:"Snow"
DEF:moisture=/var/www/html/wxgraph/snow.rrd:moisture:MAX
LINE2:moisture#FF0000:"Moisture Content" 2>&1>/dev/null


/usr/bin/rrdtool graph /var/www/html/wxgraph/snowstake.png -s -2678400
--units-exponent 0 -h 150 -w 300 -t ""
DEF:snowstake=/var/www/html/wxgraph/snow.rrd:snowstake:MAX
LINE2:snowstake#00FF00:"Snow at the Stake "

Thanks
Kevin Plew
Dad/webmaster
Plewnet.com


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list