From: Matthew Williams <mattrwilliams@us...> - 2006-07-24 19:47:22
First a little background.
We use the rrdtool package to store weather data and to generate graphs.
There are two stable streams of rrdtool, 1.0 and 1.2. Now in 1.1, the
development branch that became 1.2, they dropped support for generation of
GIFs due to the patent concerns that were surrounding GIFs at the time. So
version 1.0 can generate GIFs and PNGs, version 1.2 can't generate GIFs, but
in can generate SVGs, PNGs, EPSs and PDFs.
Now, Audrey is a great little machine, but she doesn't support PNGs. This
means that those of us wanting to use Audrey are stuck using GIFs and the
1.0 stream. 1.2 makes prettier graphs and is under active development.
I've made some changes that now allow us Audrey users to use the 1.2 stream.
mh/bin/weather_rrd_update_graphs will now check for a configuration
parameter called "weather_convert_png_to_gif". If present, it will run the
configured program to convert newly generated PNGs into GIFs. For example,
on my machine I use "convert" from ImageMagick:
As an example, if the file /usr/local/mh/data/rrd/weather_rainrate_1day.png
is updated, then the following command will be run on my system:
In other words, the configured program will be run with the full PNG
filename as the 1st parameter and the full filename of the GIF as the second
parameter. The program is expected to generate the GIF.
When an Audrey browses to the weather graph screen, it will automatically
grab the GIF versions of the images. If another browser goes to the weather
graph screen, it will grab the version pointed to by "weather_rrd_format".
These updates are in rev 798.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
Get latest updates about Open Source Projects, Conferences and News.