Hi Making progress on the matter.
http://htpc.avenard.org/power/?small=1&graph=1&view=day&date=19/02/2010&hour=23&minute=59&plot=total,ext I'm trying to draw a blue area between sunrise and sunset... "VRULE:$sunrise#32348e", "VRULE:$sunset#32348e", "VRULE:$sunnoon#000000", "VRULE:$dawn#272727", "VRULE:$dusk#272727", "DEF:tt=blah.rrd:total:AVERAGE", "CDEF:day=tt,POP,UNKN,INF,TIME,$sunrise,$sunset,LIMIT,UN,IF", "AREA:day#32348e" 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 Thanks _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
