[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [php-weathermap] How to graph a CDEF? (for coloring nodes)



Joshua Keroes wrote:
The upshot is that it's not hard to get either a max scalar value or a list of max values out of an RRD. The question is how do I hand this scalar or list to weathermap so that it can color my nodes accordingly?
Currently, the rrd datasource just uses fetch, so CDEFs aren't an option.

The new aggregation stuff in 0.96 uses graph, print, and VDEF to do it's work though, and the intention is to have it so you can define arbitrary CDEFs and VDEFs, but there's nothing there to do it just yet. If you want to have a play, take a look at the aggregate section of WeathermapDataSource_rrd.php - it's not that hard. It's the user interface (target strings) for it that is going to be tricky.

Howie

Copyright 1994-2005, by Howard Jones. howie@thingy.com