[rrd-users] Can this kind of chart be drawn with RRDTool ?
jyavenard at gmail.com
Fri Feb 19 16:20:06 CET 2010
Making progress on the matter.
I'm trying to draw a blue area between sunrise and sunset...
I draw 5 vertical lines, at dawn, sunrise, sunset, dusk and solar noon
(to fullfill my curiosity)..
As I can't create a CDEF from a RpN expression without using a
reference to a DEF or CDEF, so I read a dummy RRD that I know as data
continously. In the RPN expression I remove the date, and check if
TIME is between sunrise and sunset. If yes, I push INF back on the
stack ; which should plot the whole screen.
But it doesn't :)
What did I miss?
It's pretty much:
IF (TIME > sunrise && TIME < sunset) then plot INF else plot UNKN
More information about the rrd-users