Not in which zip file and not in which directory?? The templates 'live' in the skins directory (and sub directories) whilst the html files 'live' in the public_html directory (and corresponding sub directories)
On Monday, 8 August 2016 16:56:00 UTC+3, Joep L. Blom wrote: > > Just a related question: Where did you get the index.html.tmpl from as > it is not in the .zip file only index.html > Joep > > > On 03/08/16 20:36, Fernando Estrada wrote: > > I have the same problem. But I have not modified phyton code. I have > > only translated the html labels of the template. While debugging I > > printed the $SummaryByMonth variable and only obtain [] as a result > > when the forecast search list extension parameter is included. When > > the parameter is erased the variable is populated. The skin.conf looks > > like > > > > [CheetahGenerator] > > # This section is used by the generator CheetahGenerator, and > > specifies > > # which files are to be generated from which template. > > # Possible encodings are 'html_entities', 'utf8', or > > 'strict_ascii' > > encoding = html_entities > > > > search_list_extensions = user.forecast.ForecastVariables > > > > [[SummaryByMonth]] > > # Reports that summarize "by month" > > [[[NOAA_month]]] > > encoding = utf8 > > template = NOAA/NOAA-YYYY-MM.txt.tmpl > > > > [[SummaryByYear]] > > # Reports that summarize "by year" > > [[[NOAA_year]]] > > encoding = utf8 > > template = NOAA/NOAA-YYYY.txt.tmpl > > > > [[ToDate]] > > # Reports that show statistics "to date", such as > day-to-date, > > # week-to-date, month-to-date, etc. > > [[[day]]] > > template = index.html.tmpl > > > > [[[week]]] > > template = week.html.tmpl > > > > [[[month]]] > > template = month.html.tmpl > > > > [[[year]]] > > template = year.html.tmpl > > > > [[[RSS]]] > > template = RSS/weewx_rss.xml.tmpl > > > > [[mapa]] > > template = mapa.html.tmpl > > > > > > I am using the sofaskin templates so it is not a new template. > > > > I am incluing in this post the skin.conf and index.html.txt for > > sofaskin and the weewx.conf (I eliminated my IP addresses and > > passwords in this file for security reasons) in the weewx root folder. > > > > thanks in advance > > > > Fernando > > > > > > El martes, 21 de junio de 2016, 11:30:15 (UTC-6), Paul Oversmith > escribió: > > > > Thanks > > > > I know I should have not modified code, but when I started, I > > didn't really understand how the overlay works. > > > > I will try to pull the code changes out and put them where they > > belong. > > The changes I made to units.py were to add new fields to the > > database and remove standard fields that were not used. and the > > fields came new groups and conversions. > > > > In any case I have found a work around - I replaced the drop down > > generation in the skin with code that directly generated them with > > #for loops. > > > > I will be remote to the Pi for a couple of months, so I will not > > change code during that time. > > > > Thanks for the help. > > > > */Paul Oversmith/* > > > > E-Mail: [email protected] <javascript:> > > Phone: (941) 266-3600 > > > > On Tue, Jun 21, 2016 at 11:01 AM, mwall > > <[email protected] <javascript:>> wrote: > > > > > > > > On Monday, June 20, 2016 at 10:14:20 PM UTC-4, Paul Oversmith > > wrote: > > > > I did some more testing. > > The standard skin works - drop downs are populated. > > When I move the standard skin index page into my skin, > > which is based on exfoliation the drop downs stop showing > up. > > When the forecasting search extension is removed. the drop > > downs show up. > > I have another issue that might be related. The > > lastest.xxx. seems to show when there is current data, but > > is not shown if there is no current data. > > > > So I think somehow the search list is screwed up. > > > > * Is there a way I can view what is in the full search > > list? That would help determine if the problem is in > > building the list or using the list. > > * The only really changed code is units.py and that is > > used to generate the search list. It is possible I > > did something wrong when I added data elements and > > data types to the database. > > * I left programming before classes became popular. And > > although I understand the general concepts, i don't > > understand Pythons implementation. > > > > Any help you can give me to point me in the right > > direction to find the problem would be helpfull. > > I doubt if the problem is in the base code, since it works > > with the standard skin. It most likely has to do with > > either my skin modifications or the changes to units.py. > > > > > > its hard to say without seeing the code, or at least a diff > > between your code and stock weewx. > > > > why did you modify units.py? > > > > the preferred way to add units is to put the entries in > > user/extensions.py, or possibly in a .py file in the user > > directory (e.g., in a driver's python code in the user > > directory). same for extending the default schema or for > > defining your own schemas. > > > > if you modify code anywhere other than the user directory, > > those changes will be overwritten when you update/upgrade weewx. > > > > as for search lists, take a look at initExtensions in > > cheetahgenerator.py. add a log/print statement to see what is > > specified and what is actually loaded. > > > > m > > -- > > You received this message because you are subscribed to a > > topic in the Google Groups "weewx-user" group. > > To unsubscribe from this topic, visit > > > https://groups.google.com/d/topic/weewx-user/p1AYCf0KkxI/unsubscribe > > < > https://groups.google.com/d/topic/weewx-user/p1AYCf0KkxI/unsubscribe>. > > To unsubscribe from this group and all its topics, send an > > email to [email protected] <javascript:>. > > For more options, visit https://groups.google.com/d/optout > > <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] <javascript:> > > <mailto:[email protected] <javascript:>>. > > 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.
