Cumulative Rain Graphs
Posted: Sat Jun 05, 2010 6:40 am
By adding parameter "scumul" to a sensor definition, you can make graphs that don't use values of each time bucket but does adding up these over the whole selected period of time. This can be useful to generate stairway graphs for total rainfall.
Code: Select all
Definition "_rain-1month" does also use this feature now:
timeframe=3M # set total time frame to 3 days before today until today
zoom=1M # select actual month
res=day1 # get data per day
gtitle=Rain # name of graph
gheight=400 # height in pixels of graph
gwidth=550 # width in pixels of graph
glunit=mm # unit of left y-axis
grunit=mm # unit of right y-axis
gtype=bar # type of graph
gtrim=0
sid0=rain0 scolor0=AADDFF sfill0=50 sline0=100 sname0=rain_fall ssel0=total # sensor 0, rainfall
sid1=rain0 scolor1=0000FF syaxis1=r stype1=step sname1=total_rain_fall ssel1=total scumul1=1 # sensor 0, total rainfall as stepped curve