Hi, I'm wondering if anyone has been successful setting up and graphing an item that fluctuates between positive and negative values?  I'm trying to trend the temperature of my freezer.  When I created the rrd earlier today (when positive values were generated) the graph was functional.  When I put my sensors inside the freezer (where the temperatures drop a few degrees below zero F) the values wouldn't drop below zero on the graph.  <div>
<br class="webkit-block-placeholder"></div><div>I tried modifying the current rrd tool with:</div><div>rrdtool tune /home/hobbit/data/rrd/tice/freezer.rrd --minimum freezerf:U<br class="webkit-block-placeholder"></div><div>
(which did drop the minimum to nan) but I still couldn't get negatives to show on the graph.  I thought I'd delete the rrd and start over - but I think now that the values are negative numbers the rrd won't even create.  Here is a snippet from my hobbitgraph and hobbitserver files</div>
<div><br class="webkit-block-placeholder"></div><div><div>[freezer]</div><div>       TITLE Freezer Temperature</div><div>       YAXIS Degrees</div><div>       DEF:tl=freezer.rrd:freezerf:AVERAGE</div><div>       #CDEF:wipeoutf=tl,-1,*</div>
<div>       DEF:cel=freezer.rrd:freezerc:AVERAGE</div><div>       #CDEF:wipeoutc=cel,-1,*</div><div>       LINE2:tl#@COLOR@:Temperature F</div><div>       #LINE2:wipeoutf#@COLOR@:Temperature -F</div><div>       LINE2:cel#@COLOR@:Temperature C</div>
<div>       #LINE2:wipeoutc#@COLOR@:Temperature -C</div><div>       COMMENT:\n</div><div>       GPRINT:tl:LAST:Temperature F\: %2.1lf (cur)</div><div>       GPRINT:tl:MAX:\: %2.1lf (max)</div><div>       GPRINT:tl:MIN:\: %2.1lf (min)</div>
<div>       GPRINT:tl:AVERAGE:\: %2.1lf (avg)\n</div><div>       GPRINT:cel:LAST:Temperature C\: %2.1lf (cur)</div><div>       GPRINT:cel:MAX:\: %2.1lf (max)</div><div>       GPRINT:cel:MIN:\: %2.1lf (min)</div><div>       GPRINT:cel:AVERAGE:\: %2.1lf (avg)\n</div>
<div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><div>NCV_freezer="*:GAUGE"</div><div>(with freezer=ncv at the end of TEST2RRD and freezer and the end of GRAPHS).</div>
<div><br class="webkit-block-placeholder"></div><div>Here is my script that generates the NCV for the rrd:</div><div><br class="webkit-block-placeholder"></div><div><div>#!/bin/sh</div><div>COLUMN=freezer      # Name of the column</div>
<div>COLOR=green     # By default, everything is OK</div><div><br class="webkit-block-placeholder"></div><div>[ -f ./.digitemprc ] || /usr/local/bin/digitemp_DS9097U -s/dev/ttyS0 -i</div><div><br class="webkit-block-placeholder">
</div><div>TEMPERATURE=$(/usr/local/bin/digitemp_DS9097U -s/dev/ttyS0 -a | awk '{print $9}' | tail -1 | awk -F. '{print $1}')</div><div><br class="webkit-block-placeholder"></div><div>if [ "${TEMPERATURE}" -gt 30 ]; then</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>COLOR=red</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>MSG="Temperature above 30 degrees"</div><div>else</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>COLOR=green</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>MSG="Temperature normal"</div><div>fi</div><div><br class="webkit-block-placeholder"></div><div>#<span class="Apple-tab-span" style="white-space:pre">     </span>Section for data graphing</div>
<div>TEMPERATURE2_F=$(/usr/local/bin/digitemp_DS9097U -s/dev/ttyS0 -a | awk '{print $9}' | tail -1)</div><div>TEMPERATURE2_C=$(/usr/local/bin/digitemp_DS9097U -s/dev/ttyS0 -a | awk '{print $7}' | tail -1)</div>
<div><br class="webkit-block-placeholder"></div><div>echo "freezerf : ${TEMPERATURE2_F}" > $BBTMP/freezer_f.txt</div><div>echo "freezerc : ${TEMPERATURE2_C}" > $BBTMP/freezer_c.txt</div><div>##</div>
<div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>$BB $BBDISP "status $MACHINE.freezer $COLOR $MSG</div><div>`cat $BBTMP/freezer_f.txt`</div><div>`cat $BBTMP/freezer_c.txt`</div>
<div>"</div><div><br class="webkit-block-placeholder"></div><div>rm $BBTMP/freezer_f.txt</div><div>rm $BBTMP/freezer_c.txt</div><div><br class="webkit-block-placeholder"></div><div>exit 0</div><div><br class="webkit-block-placeholder">
</div><div><br class="webkit-block-placeholder"></div><div>If anyone has an idea please let me know - I'd really like to trend this data.</div><div><br class="webkit-block-placeholder"></div><div>Thanks,</div><div><br class="webkit-block-placeholder">
</div><div>Matt</div></div></div></div>