Hi,
Thought I would share some progress on this part of my 1wire network. It's
not really owfs related (as its running so well on my new server J) however
I have expanded my knowledge for rrdtools and thought I would share for
those that want to trend some data..
Having had aquarium data for some time being trended, weather data opened up
some new possibilities on how to present trend information. I had always
simply used the standard trend options for rrdtools however I had some time
to expand on this over the last couple of weeks.
I did contemplate using a weather station app however with some creative
trends via rrdtools I've come to the conclusion simply feeding owfs data
into rrdtools provide all I really need.
This is nothing special for those that know rrdtools however if like myself
you have never really thought to expand the standard output it may inspire
you. I got to understand the CDEF VDEF capabilities of rrdtools via
http://wiki.springsurprise.com/
The following trends are available at www.rjconway.homeip.net then select
[Weather] from the top menu bar and click on a gauge to display the
associated trend. I am still waiting on delivery of my anemometer which I
shall connect via BAE910
Barometer Trend:
I have played with shaded area and the ability to show two scales. It is
useful to show on the trend legend the value, time and date of the MAX value
reached as well. I will find some time to include the current rate of
change over the last x hours which is appropriate for this type of data. I
think this will be quite simply as you can bring the same point into the
graph twice, one current value and then current value minus xx minutes then
do a simply calc to display the rate in the legend.
Ultra Violet:
This is kind of cool that you can display an area trend and change the area
color based on actual value. Great for showing the UV data. For thois
interested this is my rrdtool script for the UV. It also has the Max value
reached as well in the legend. I simply send via CGI variable data to this
script for start end scaling etc however you will get the idea for the
calcs. (There is probably a better implementation using rrdcgi however
could never really get my head around it.)
## Weather Station UVI ##
rrdtool graph /var/www/weather.png --start $STIME --end $ETIME \
--upper-limit $HIGHSCALE --lower-limit $LOWSCALE --slope-mode --units-length
2 \
--interlaced \
--rigid \
--width $WIDTH --height $HEIGHT \
--vertical-label "Index" \
--color CANVAS#000000 \
--title "Ultra Violet" \
DEF:UV=/var/www/rrd/weather_1.rrd:pnt_4:AVERAGE \
CDEF:low=UV,3,LE,UV,UNKN,IF \
CDEF:mild=UV,3,LE,UNKN,UV,6,GT,UNKN,UV,IF,IF \
CDEF:high=UV,6,LE,UNKN,UV,8,GT,UNKN,UV,IF,IF \
CDEF:veryhigh=UV,8,LE,UNKN,UV,11,GT,UNKN,UV,IF,IF \
CDEF:extreme=UV,11,LE,UNKN,UV,IF \
AREA:low#99FF00:Low_0-3 \
AREA:mild#FFFF00:Mild_3-6 \
AREA:high#FF9900:High_6-8 \
AREA:veryhigh#FF0000:VeryHigh_8-11 \
AREA:extreme#660066:Extreme_11-16 \
COMMENT:" \n" \
LINE1:UV#FFFFFF:"UVI Index" \
VDEF:templast=UV,LAST GPRINT:templast:"Current Value = %3.1lf \n" \
VDEF:uvmax=UV,MAXIMUM GPRINT:uvmax:" Maximum Recorded, %A %d-%m-%Y %I\\:%M
%p :strftime" \
GPRINT:uvmax:"Value = %3.1lf \l" \
--watermark "Weather Station">/dev/null
Rob
Australia
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers