Note: This article is about features in a version of Weathermap that is not yet released. It is aimed at those who are testing the new version, prior to it's release. Feel free to help with that testing process, but 0.96 is not a finished or fully tested release yet.
There have been quite a few changes to the RRDtool datasource plugin for 0.96 - some of them are related specifically to the Cacti integration, and poller_output support, and others are more general. I'll cover the general ones here, and the Cacti-related stuff in another article about Cacti-related new features.
First of all, there are some convenience features, especially if you don't use Cacti. These SET commands are map-global, so they should appear in the top section of you map config file, before any nodes or links:

  • You can define a default 'base directory' where the RRD DS will look for .rrd files, if there isn't a full path in the TARGET. This makes your config files much easier to read.
    SET rrd_default_path /usr/local/mrtg/var
  • You can also change the default 'in' and 'out' DS names from traffic_in and traffic_out to something more useful for your environment. For MRTG, this would be
    SET rrd_default_in_ds DS0
    SET rrd_default_out_ds DS1

    and for Cricket, ds0/ds1.

Next up is a completely different mode for reading RRD files. Normally, weathermap fetches the last 12 minutes' data from each RRD file, and then picks the newest non-NaN line to use as the 'current' data. Of course, RRDtool's big strength is that it keeps historical data too. You have been able define rrd_start and rrd_period for quite a while now to get a historical map using RRD data - although the results 'soften' as RRDtool aggregates older data into averages over larger periods of time. It still presents data from a single point in time though.
In 0.96, you can also get data which is the average, minimum, maximum etc over a given period. So you can make a weekly maximum, or a monthly 95th percentile map. This is done with very few changes to the map config, so you can also do this without having a second config file - much less maintenance to do!
To use the aggregate functions, you need to define a few map-global SET variables. You can do this either in the map config, or using the --define command-line parameter if you use the command-line tool, or from within the Cacti plugin interface, if you use that. The last two mean you can use the same map config file for an instantaneous map, and also for 'reporting' maps.
The SET variables are:

SET rrd_start now-1month
SET rrd_period 2592000
SET rrd_aggregate_function AVERAGE

The first two define which period in time to collect data from, while the last defines what to do with it. Valid aggregation functions currently include: MINIMUM, MAXIMUM, AVERAGE and PERCENT (PERCENT also requires a percentage, like '95,PERCENT'). This feature uses the 'PRINT' rrdtool graph command and VDEF feature, so as new functions are added there, they will work here. rrd_period is a timespan in seconds (30 days here) - this will likely change to allow more friendly period descriptions.
Add another cron job, and you can easily get weekly or monthly reports without managing another map.