The ones which work are using alltime..... the ones which fail are using 
summaryby.....  what happens after using Tom's suggested re-ordering to 
help with populating summaryby?????



On Wednesday, 7 December 2016 19:08:15 UTC+2, Hartmut Schweidler 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:&nbsp;
>    <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.

Reply via email to