[rrd-users] RRDs::graph and DEF... MIN

Joachim Hartmann joachim.hartmann at gmx-topmail.de
Fri Dec 2 15:59:17 CET 2016


Hi,
I am monitoring my heating by a raspberry-pi using rrd data base:
- TMP_V = flow temperature
- TMP_R = return temperature
- WOHNZ = indoor temperature
- AUSEN = outdoor temperature
- PUMPE = circulating pump (running or not)

The graph wil be drawn by perl script using RRDs::graph
(librrds-perl 1.4.7-2+rpi1):

################################################################
RRDs::graph($tmpfile,
   @opts,
   "DEF:TMP_V=/home/pi/heizung.rrd:hzg_v:AVERAGE",
   "DEF:TMP_R=/home/pi/heizung.rrd:hzg_r:AVERAGE",
   "DEF:WOHNZ=/home/pi/heizung.rrd:wohnz:AVERAGE",
   "DEF:AUSEN=/home/pi/heizung.rrd:ausen:AVERAGE",
   "DEF:PUMPE=/home/pi/heizung.rrd:pumpe:AVERAGE",
   "CDEF:OnOff=PUMPE,FLOOR,80,*",
   "AREA:OnOff#F0EFEF:Umwaelzpumpe  ",
   "LINE1:OnOff#424242:",
   "LINE2:0#000000:",
   "GPRINT:PUMPE:LAST:akt.\\:%5.1lf",
   "GPRINT:PUMPE:MIN:min\\:%5.1lf",
   "GPRINT:PUMPE:MAX:max\\:%5.1lf",
   "GPRINT:PUMPE:AVERAGE:mittel\\:%5.1lf\\n",
   "LINE2:TMP_V#FF0000:Vorlauftemp.  ",
   "GPRINT:TMP_V:LAST:akt.\\:%5.1lf",
   "GPRINT:TMP_V:MIN:min\\:%5.1lf",
   "GPRINT:TMP_V:MAX:max\\:%5.1lf",
   "GPRINT:TMP_V:AVERAGE:mittel\\:%5.1lf\\n",
   "LINE2:TMP_R#0000FF:Ruecklauftemp.",
   "GPRINT:TMP_R:LAST:akt.\\:%5.1lf",
   "GPRINT:TMP_R:MIN:min\\:%5.1lf",
   "GPRINT:TMP_R:MAX:max\\:%5.1lf",
   "GPRINT:TMP_R:AVERAGE:mittel\\:%5.1lf\\n",
   "LINE2:WOHNZ#00FF00:Wohnzimmer    ",
   "GPRINT:WOHNZ:LAST:akt.\\:%5.1lf",
   "GPRINT:WOHNZ:MIN:min\\:%5.1lf",
   "GPRINT:WOHNZ:MAX:max\\:%5.1lf",
   "GPRINT:WOHNZ:AVERAGE:mittel\\:%5.1lf\\n",
   "LINE2:AUSEN#424242:Aussentemp.   ",
   "GPRINT:AUSEN:LAST:akt.\\:%5.1lf",
   "GPRINT:AUSEN:MIN:min\\:%5.1lf",
   "GPRINT:AUSEN:MAX:max\\:%5.1lf",
   "GPRINT:AUSEN:AVERAGE:mittel\\:%5.1lf\\n"
);
################################################################

All looks fine as lpng as the outdoor temperatrure is above 0 degree.
Otherwise the pump graph ends at the O line, it looks ugly!

My idea: drawing first something like this:
################################################################
   ...
   "DEF:Off=/home/pi/heizung.rrd:ausen:MIN",
   "AREA:Off#F0EFEF",
   "LINE1:Off#424242:",
   ...
################################################################

but - my - RRDs::graph does not exept the line
  "DEF:Off=/home/pi/heizung.rrd:ausen:MIN",
!!

Anyone an idea?

Sorry English is not my native language and school is long ago
-- 
Gruß aus der Stadt der CeBIT
Greeting from the city of CeBIT
Jochen



More information about the rrd-users mailing list