On Tuesday, January 15, 2019 at 8:42:22 AM UTC-5, Johannes Ebner wrote: > > Hi, > > I am struggeling with the forecasting module. > > I installed it (including the copy of the icons into each skins directory) > following the instructions from here: > https://github.com/weewx/weewx/wiki/forecasting > > But If I try to include it to one of the skins, then the formatting is not > correct. No collored icons, wrongly assigned. > > I tried to add it with #include "forecast_table.inc" >
johannes, could you post the contents of the template that includes the forecast? (maybe it is index.html.tmpl?) also, do you have any directives related to forecast in the [StdReport] section of weewx.conf, or in the skin.conf for your report? if so, please post those too. there are different ways to configure the forecast display, depending on what you need to do. perhaps the easiest is to configure directly in a template file. if your template is index.html.tmpl, and you want the forecast to show up in a block in that page, then you could put this: #set global $forecast_table_settings = dict() #set global $forecast_table_settings['source'] = 'WU' #set global $forecast_table_settings['num_days'] = 10 #include "forecast_table.inc" using this approach, the entire configuration is contained in the template file. if you want, you can put this inside of <div> to fit the look and feel of the page. be sure to include the css in the <head> section of the html template: <link rel='stylesheet' type='text/css' href='forecast.css'/> <link rel='stylesheet' type='text/css' href='forecast_table.css' /> the complete list of parameters for the tablular display can be found in the 'options for included files' section of the forecast wiki page: https://github.com/weewx/weewx/wiki/forecasting the other approaches put the parameters in the [StdReport] section of weewx.conf, or in the 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
