Dear allI’m using rrd with a weather station (Sirius) from TFA, get data every 5 minutes, and an Raspberry PI for producing graph and upload them to a web server – interested see here <http://sejr-hansen.dk/vejr/vejr.htm> (Encrypted in Danish) Raincounter from the TFA weather station is a “counter” in rrd language, and my problem is that I can’t figure out how to produce graphs and can’t see how I get data the tells about e.g. rain the last week, day or one hour. I found this <https://lists.oetiker.ch/pipermail/rrd-users/2000-November/001697.html> : and has tried to copy this to this shell script---------#!/bin/bashDIR="/home/pi/rrd/"#Rain the last hourrrdtool graph dummy --start -1h \DEF:rain=$DIR/hjemmedatabase.rrd:raincounter:AVERAGE \CDEF:totalrain=rain,1,3600,*,* \PRINT:totalrain:AVERAGE:"%4.2lf mm"#Reain last 24 hourrrdtool graph dummy --start -1d \DEF:rain=$DIR/hjemmedatabase.rrd:raincounter:AVERAGE \CDEF:totalrain=rain,1,86400,*,* \PRINT:totalrain:AVERAGE:"%4.2lf mm"#rain the last weekrrdtool graph dummy --start -1w \DEF:rain=$DIR/hjemmedatabase.rrd:raincounter:AVERAGE \CDEF:totalrain=rain,1,86400,*,* \PRINT:totalrain:AVERAGE:"%4.2lf mm"#rain the last monthrrdtool graph dummy --start -1m \DEF:rain=$DIR/hjemmedatabase.rrd:raincounter:AVERAGE \CDEF:totalrain=rain,1,86400,*,* \PRINT:totalrain:AVERAGE:"%6.2lf mm"#rain the last 3 monthrrdtool graph dummy --start -3m \DEF:rain=$DIR/hjemmedatabase.rrd:raincounter:AVERAGE \CDEF:totalrain=rain,1,86400,*,* \PRINT:totalrain:AVERAGE:"%6.2lf mm"-------I can’t see why this is not working. It seems the last hour and 24 hour is correct – but rest?Hope that I can get some help from/Kurt Sejr Hansen
-- View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/Measuring-rain-from-weatherstation-tp7582709.html Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com. _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
