Jindrich Fucik
2009-12-06 14:28:00 UTC
Hi Lists,
Sorry if my theme is not actual for you, but I must write it to somebody, otherwise I will forget it :o)
I'm using cricket at home for measuring various environment values.
One of more interested measurements are measuring of heat pump. The heat pump producing set of values, including outdoor temperature, indoor temperature, temperature of cold and heat fluid. So, it mean, there are few values, where I'm more interested on "min" values instead of "max".
Because cricket by default presenting only max, and default rrd parameters are oriented to max, i must in my config change these parameters. Here is an example of my RRD parameters. (be careful, that I'm measuring every 2 mins (120sec))
You can found, that I must add RRA for mins and also must change number of samples used per RRA.
[... cut of target parameters from Defaults ...]
target --default--
rrd-poll-interval = 120
summary-loc = bottom
# one point per 2 minutes, spanning 50 hours (rrd-pool-interval = 120sec)
rra 2minAg AVERAGE:0.5:1:1500
##rra 5minAve AVERAGE:0.5:1:600
# one point per 30 minutes, spanning 12 days
rra 30minAg AVERAGE:0.5:15:600
rra 30minMn MIN:0.5:15:600
##rra 30minAve AVERAGE:0.5:6:600
# one point every 2 hours, spanning 50 days
rra 2hrAg AVERAGE:0.5:60:600
rra 2hrMn MIN:0.5:60:600
rra 2hrMx MAX:0.5:60:600
##rra 2hrAve AVERAGE:0.5:24:600
##rra 2hrMax MAX:0.5:24:600
# one point every day, spanning 600 days
rra 1dayAg AVERAGE:0.5:720:600
rra 1dayMn MIN:0.5:720:600
rra 1dayMx MAX:0.5:720:600
##rra 1dayAve AVERAGE:0.5:288:600
##rra 1dayMax MAX:0.5:288:600
[... cut end ...]
OK, now I have all data in my rrd file. Problem is, how to display it. I have used presented graph parameter "show-max", but for deciding, that I'm interested into "min" i have added parameter "show-min". The configuration values (color, line style) I'm using original parameters max-color etc.
[... cut of graph parameters from Defaults ...]
graph outdoor
legend = "Outdoor temperature [GT2](20C)"
color = dark-green
draw-as = LINE0
max-color = dark-green
show-min = true
[... cut end ...]
So, it sounds like logical - problem is, that grapher not understand that new parameter. I must patch grapher to add show-min parameter. Patch in FreeBSD notation is included as a attachment of email.
There are example of my graphs:
http://wifi.nekropolis.cz/cgi-bin/grapher.cgi?target=%2FIVT_marked_mins%2Fuhrineves;view=All
If anybody is interested by more details, I can send it.
Jindra
Sorry if my theme is not actual for you, but I must write it to somebody, otherwise I will forget it :o)
I'm using cricket at home for measuring various environment values.
One of more interested measurements are measuring of heat pump. The heat pump producing set of values, including outdoor temperature, indoor temperature, temperature of cold and heat fluid. So, it mean, there are few values, where I'm more interested on "min" values instead of "max".
Because cricket by default presenting only max, and default rrd parameters are oriented to max, i must in my config change these parameters. Here is an example of my RRD parameters. (be careful, that I'm measuring every 2 mins (120sec))
You can found, that I must add RRA for mins and also must change number of samples used per RRA.
[... cut of target parameters from Defaults ...]
target --default--
rrd-poll-interval = 120
summary-loc = bottom
# one point per 2 minutes, spanning 50 hours (rrd-pool-interval = 120sec)
rra 2minAg AVERAGE:0.5:1:1500
##rra 5minAve AVERAGE:0.5:1:600
# one point per 30 minutes, spanning 12 days
rra 30minAg AVERAGE:0.5:15:600
rra 30minMn MIN:0.5:15:600
##rra 30minAve AVERAGE:0.5:6:600
# one point every 2 hours, spanning 50 days
rra 2hrAg AVERAGE:0.5:60:600
rra 2hrMn MIN:0.5:60:600
rra 2hrMx MAX:0.5:60:600
##rra 2hrAve AVERAGE:0.5:24:600
##rra 2hrMax MAX:0.5:24:600
# one point every day, spanning 600 days
rra 1dayAg AVERAGE:0.5:720:600
rra 1dayMn MIN:0.5:720:600
rra 1dayMx MAX:0.5:720:600
##rra 1dayAve AVERAGE:0.5:288:600
##rra 1dayMax MAX:0.5:288:600
[... cut end ...]
OK, now I have all data in my rrd file. Problem is, how to display it. I have used presented graph parameter "show-max", but for deciding, that I'm interested into "min" i have added parameter "show-min". The configuration values (color, line style) I'm using original parameters max-color etc.
[... cut of graph parameters from Defaults ...]
graph outdoor
legend = "Outdoor temperature [GT2](20C)"
color = dark-green
draw-as = LINE0
max-color = dark-green
show-min = true
[... cut end ...]
So, it sounds like logical - problem is, that grapher not understand that new parameter. I must patch grapher to add show-min parameter. Patch in FreeBSD notation is included as a attachment of email.
There are example of my graphs:
http://wifi.nekropolis.cz/cgi-bin/grapher.cgi?target=%2FIVT_marked_mins%2Fuhrineves;view=All
If anybody is interested by more details, I can send it.
Jindra