OK, I think I know what's going on. The way the reporting engine works in weewx, it generates all the "summary by year" files in section [[SummaryByYear]], saving the year of each one for later use in variable $SummaryByYear. So, for example, if your database has data for years 2013, 2014, 2015, and 2016, then one file will be generated for each subsection under [[SummaryByYear]]. In the normal skin.conf, there is only one subsection under [[SummaryByYear]], and that's [[[NOAA_year]]]. So, $SummaryByYear will hold one copy for each year, i.e., 2013, 2014, 2015, and 2016.
However, in your case, you have 9 subsection ([[[Data_year]]], [[[Rain_year]]], etc.), so $SummaryByYear ends up holding a copy for each year for each of your nine subsections: 2013, 2014, 2015, 2016, 2013, 2014, 2015, 2016, 2013, ... etc. I've posted issue #187 <https://github.com/weewx/weewx/issues/187>. I'll probably get to fixing this in the next few weeks. Finally, this bug has probably been here all along. I don't think it was introduced in V3.6.2. I don't know why you didn't notice it before. -tk On Wed, Dec 7, 2016 at 9:08 AM, Hartmut Schweidler <[email protected]> wrote: > > i have it also in day.html.tmpl > > I have it in all other file on the "head.inc" for the header and "footer.inc" > for the footer > > In the page source text it is also to be seen > > > in statistik.html.tmpl i have: > > <h3>Jahresarchiv</h3> > #for $year in $alltime.years > #set $yr = $year.dateTime.format("%Y") > #set $hesweby = "Archiv/KR-" + $yr + "-table.html" > #set $heslisy = $yr > <input type="button" value="$heslisy" onclick="openURL('$hesweby')" /> > #end for > > it works. > > but in "footer.inc" > <select NAME=noaaselect onchange="openNoaaFile(value)"> > #for $monthYear in $SummaryByMonth > <option value="$monthYear">$monthYear</option> > #end for > <option selected>- Monat -</option> > </select> > > Auswahl: > <select NAME=noaaselect onchange="openNoaaFile(value)"> > #for $yr in $SummaryByYear > <option value="$yr">$yr</option> > #end for > <option selected>- Jahr -</option> > </select> > It does not work > > hartmut > > > > Am Mittwoch, 7. Dezember 2016 17:44:31 UTC+1 schrieb Tom Keffer: >> >> This may be a bug in the logic which decides which files have already >> been generated. >> >> In your skin.conf file, try changing this >> >> [[ToDate]] >> # >> # Reports that show statistics "to date", such as day-to-date, >> # week-to-date, month-to-date, etc. >> # >> #Wetterseiten >> [[[day]]] >> template = day.html.tmpl >> >> [[[wetterbild]]] >> stale_age = 3570 >> template = wetter.html.tmpl >> >> [[[indexKR]]] >> template = forecastkr.html.tmpl >> stale_age = 3570 >> >> [[[station]]] >> stale_age = 3570 >> template = station.html.tmpl >> >> [[[statistik]]] >> stale_age = 3600 >> template = statistik.html.tmpl >> >> to this >> >> [[ToDate]] >> # >> # Reports that show statistics "to date", such as day-to-date, >> # week-to-date, month-to-date, etc. >> # >> >> [[[statistik]]] >> stale_age = 3600 >> template = statistik.html.tmpl >> >> #Wetterseiten >> [[[day]]] >> template = day.html.tmpl >> >> [[[wetterbild]]] >> stale_age = 3570 >> template = wetter.html.tmpl >> >> [[[indexKR]]] >> template = forecastkr.html.tmpl >> stale_age = 3570 >> >> [[[station]]] >> stale_age = 3570 >> template = station.html.tmpl >> >> >> This moves the [[[statistik]]] section up to the top. If this works, then >> we will have to find a better solution for populating $SummaryByYear. >> >> -tk >> >> >>> >>> >>> >>> -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
