[rrd-users] Re: Weekgraphs shows only one day.
Alex van den Bogaerdt
alex at ergens.op.het.net
Fri Oct 11 12:42:53 MEST 2002
On Fri, Oct 11, 2002 at 09:24:12AM +0200, HW wrote:
>
> Hi,
>
> On my website http://www.geitz.net/weather/ I try to make dayly and
> weekly graphs from my weather station.
According to the site:
This weathersite is in the condtruction mode.
Observations are every 60 seconds updated
Come back for more details
Apart from ze erorz, we learn you're updates are done
every 60 seconds. However ...
> init rrdtool (one year of data will be stored)
> rrdtool create /root/oww2.rrd -b -867000 --step 300
--step 300 This means each PDP is 5 minutes, not 1.
> DS:temp1:GAUGE:600:-15:45 DS:temp2:GAUGE:600:-15:45
> DS:temp3:GAUGE:600:-15:45 DS:wspd:GAUGE:600:0:140
> DS:wdir:GAUGE:600:0:360 DS:baro:GAUGE:600:910:1050
Temperatures range from -15 to 45. This will probably do for
the Netherlands. Wind speed ranges from 0 to 140. The wind
direction ranges from 0 to 360 (0 equals 360!) The pressure
ranges from 910 to 1050.
All of the values need to be updated at least every 10 minutes
or else the values become unknown.
> RRA:AVERAGE:0.5:1:288
An RRA where each CDP is 1 PDP. The CDPs are averaged.
> RRA:MIN:0.5:288:86400
An RRA where each CDP is 288 PDPs. The minimum of a series of
PDPs is stored.
> RRA:MAX:0.5:288:86400
An RRA where each CDP is 288 PDPs. The maximum of a series of
PDPs is stored.
When you query your RRD, depending on what you ask, the corresponding
RRA is used. If you ask for AVERAGEs, RRDtool has no choise but
to select the AVERAGE RRA. It can only find 288 CDPs and this is
288 * 300 == 86400 seconds (one day).
> update every 20 sec:
> /usr/bin/rrdtool update /usr/local/share/oww/oww.rrd
> N:$tc1$:$tc2$:$tc3$:$wspkph$:$wdrdeg$:$barmbar1$
This doesn't match your RRA. It will work, sort of.
> weekly graph:
> #de wind snelheid week
> /usr/bin/rrdtool graph /var/www/docs/weather/wspdweek.png -s -604800 -h
> 150 -w 300 -t "Windspeed last 7 days"
> \DEF:wspd=/usr/local/share/oww/oww.rrd:wspd:AVERAGE
> LINE2:wspd#11ff00:"speed in kmph"2>&1 > /dev/null
Try:
DEF:windspeedMin=/.......:MIN
DEF:windspeedMax=/.......:MAX
AREA:windspeedMin
STACK:windspeedMax#11FF00
HTH
Alex
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list