Finally managed to get a page like what I wanted up for one month:

http://bedi.co.in/~pcws/tabular.html?report=Climatalogy.txt

Attached template file used for same.

Some inputs on below would be helpful:

1) The way it is done now, I need to have 12 templates - one for each file. 
With changes in just 2 lines. Looking for a way to do it smarter. I see 
that SummaryByMonth etc creates timespans and loops. But in this scenario, 
the timespans I am interested in are not continuous (Jan of each year, Feb 
of each year and so on). So I dont think I can create timespans for these
2) xaggs may not work I think since it seems to query daily summary from 
db. There is no monthly summary in db however as I understand
3) How do I make different month templates run at different times. No point 
in running for month off Jan daily in August for example.

PS : I am a noob on cheetah etc. Just reading through stuff now to get hang 
of things.
On Saturday, 13 August 2022 at 19:30:46 UTC+5:30 Tom Keffer wrote:

> So you did! Here's my response:
>
> There's no explicit tag to do that. You could loop over all months, then 
> test the date to see if it is in a particular month. Something like (NOT 
> TESTED):
>
> #for month in $alltime.months
> #  if month.start.format("%b") == 'Jun'
> #    <p>Max for year $month.start.format("%Y") is $month.outTemp.max</p>
> #  end if
> #end for
>
> Alternatively, you could write an xtypes extension and create a new 
> aggregation type. Similar to the "historical_min" and "historical_max" 
> aggregations in the weewx-xaggs <https://github.com/tkeffer/weewx-xaggs> 
> extension, 
> except it would be the historical min and max for the month, instead of the 
> day.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/e6b5d587-912f-41ae-b3af-0e6dbd0f5d7bn%40googlegroups.com.

Attachment: Climatalogy.txt.tmpl
Description: Binary data

Reply via email to