Generating Monthly HTML reports

47 views
Skip to first unread message

philip....@gmail.com

unread,
Sep 6, 2020, 6:28:04 AM9/6/20
to weewx-user
Using $SummaryByMonth (Month-%Y-%m.html.tmpl) I produce a monthly report in HTML format and to make it easier to view I would like a full list of all months in a drop down list on all reports.
Using #for $monthYear in $SummaryByMonth only gives a list up to the report date nothing beyond.
Using #for $year in $alltime.years
               #for $mth in $year.months only populates the months in the year of the report.
$year in $alltime.years doesn't seem to work in $SummaryByMonth . 
I can achieve this by manually adding a new month using <option value ="2020-05">2020-05</option> etc.
Is it possibly to  populate a drop down list automatically.
Thanks Phil



Tom Keffer

unread,
Sep 6, 2020, 11:23:27 AM9/6/20
to weewx-user
I've thought about this as well, but have not found an easy way to do this. Best bet would be to create a frame, which would include the drop down list, then include the report in the frame.

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/32d93b60-7dee-4210-b177-1f033663dba0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages