[rrd-users] MIN AVG MAX LAST Values
Simon Pickard
simpic at gmail.com
Tue Dec 30 20:22:25 CET 2014
Hello,
I am using rrdtool to graph reading from various temp sensors.
If a value goes between 0.00 & -0.99 the MIN AVG MAX or LAST values shown
on the graph read as 876m for example rather than the degree reading.
Here is the code to create the graph...
rrdtool graph $DIR/flue_temp_hourly_60.png \
--start -4h \
--end=now \
--title="$TITLE" \
--imgformat=PNG \
--width=800 \
--base=1000 \
--height=240 \
--rigid \
--interlaced \
--slope-mode \
--vertical-label "Temperature (C)" \
--right-axis-label "Temperature (C)" \
--right-axis 1:0 \
"DEF:flueTemp=$DIR/28.18667B050000.rrd:t:AVERAGE" \
"DEF:outsideTemp=$DIR/28.73367C050000.rrd:t:AVERAGE" \
"DEF:temp=$DIR/28.18667B050000.rrd:t:AVERAGE" \
LINE2:flueTemp$TEMP1_COLOR:"Flue Temp [deg $TEMP_SCALE]" \
VDEF:Flue_Temp_MIN=flueTemp,MINIMUM \
GPRINT:Flue_Temp_MIN:"Min\:%8.2lf%s" \
VDEF:Flue_Temp_AVERAGE=flueTemp,AVERAGE \
GPRINT:Flue_Temp_AVERAGE:"Avg\:%8.2lf%s" \
VDEF:Flue_Temp_MAX=flueTemp,MAXIMUM \
GPRINT:Flue_Temp_MAX:"Max\:%8.2lf%s" \
VDEF:Flue_Temp_LAST=flueTemp,LAST \
GPRINT:Flue_Temp_LAST:"LAST\:%8.2lf%s\n" \
\
LINE2:outsideTemp$OUTTEMP_COLOR:"Outside Temp [deg $TEMP_SCALE]" \
VDEF:Return_Temp_MIN=outsideTemp,MINIMUM \
GPRINT:Return_Temp_MIN:"Min\:%8.2lf%s" \
VDEF:Return_Temp_AVERAGE=outsideTemp,AVERAGE \
GPRINT:Return_Temp_AVERAGE:"Avg\:%8.2lf%s" \
VDEF:Return_Temp_MAX=outsideTemp,MAXIMUM \
GPRINT:Return_Temp_MAX:"Max\:%8.2lf%s" \
VDEF:Return_Temp_LAST=outsideTemp,LAST \
GPRINT:Return_Temp_LAST:"LAST\:%8.2lf%s\n"
Can anyone offer any suggestions as to why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20141230/7aa743d1/attachment.html>
More information about the rrd-users
mailing list