On Friday, February 8, 2019 at 3:03:34 PM UTC-5, Glenn McKechnie wrote:
>
>
> The commented code that you see in Bob's template is not the actual 
> NOAA generating code. It is a duplicate that I included when we were 
> troubleshooting this originally.  The original #for...#end for code is 
> still contained in the template. 
>

color me confused.

this is the code in the original index.html.tmpl file:

        <select NAME=noaaselect onchange="openNoaaFile(value)">
        #for $monthYear in $SummaryByMonth
            <option value="$monthYear">$monthYear</option>
        #end for
            <option selected>-Select month-</option>
        </select>
        <br/>
        Yearly summary:&nbsp;                                              
     
        <select NAME=noaaselect onchange="openNoaaFile(value)">
        #for $yr in $SummaryByYear
            <option value="$yr">$yr</option>
        #end for
            <option selected>-Select year-</option>
        </select>

this is an example of the resulting index.html:

        <select NAME=noaaselect onchange="openNoaaFile(value)">            
<option value="2019-02">2019-02</option>         <option selected>-Select 
month-</option>        </select>        <br/>        Yearly summary:&nbsp;      
  <select NAME=noaaselect onchange="openNoaaFile(value)">            <option 
value="2019">2019</option>        <option selected>-Select year-</option>       
 </select>


this came from the Standard skin, with two lines added to index.html.tmpl:

<link rel='stylesheet' type='text/css' href='forecast_compact.css'/>

#include "forecast_compact.inc"


and with the ForecastVariables enabled in weewx.conf like this:

[StdReport]
    ...
    [[Standard]]
        ...
        [[[CheetahGenerator]]]
            search_list_extensions = user.forecast.ForecastVariables

but this is what i see in bob's index.html:

        <select NAME=noaaselect onchange="openNoaaFile(value)">            
<option selected>-Select month-</option>        </select>        <br/>        
Yearly summary:&nbsp;                                                           
<select NAME=noaaselect onchange="openNoaaFile(value)">            <option 
selected>-Select year-</option>        </select>


so two questions for bob:

1) what do you get in the index.html when you disable ForecastVariables?

2) what are the [[[DAILYCHARTS]]], [[[MONTHLYCHARTS]]], and [[[YEARLYCHARTS]]] 
sections for in your skin.conf?

m

-- 
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.

Reply via email to