Gary, I just want to confirm that you suggested approach with alltime works, and further I can iterate a *year.months* loop within an *alltime.years* loop.
For the benefit of anyone else, the code to print the avg temperature for every month in the database is as follows: #for $year in $alltime.years #for $mth in $year.months #if $mth.outTemp.count.raw <tr><td>$mth.dateTime.format("%Y %m")</td><td>$mth.outTemp.avg</td></tr> #end if #end for #end for Thank you for your help -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.