You could always just keep the forecast page separately, and have a link to 
forecast on he main index page, and add a link back to index on the 
forecast page.if it proves too hard to merge the code for forecast onto the 
index page.




On Friday, 29 September 2017 17:00:23 UTC+3, Damjan Hajsek wrote:

> Thank you, it works now, I just need to combine code from multiple tables 
> into index.html.tpl so page will look normal, now all is messed.
>
>
>        <div class="main" >
>         <div class="container" >
>             
>             <div class="left" >
>                 
>                 <div class="card" >
>                     <h1><i class="fa fa-sun-o m-orange" ></i> Current 
> Conditions</h1>
>                     <table class="tablespacer">
>                         <tr><td>Outside 
> Temperature</td><td>$current.outTemp</td></tr>
>                         <tr><td>Wind 
> Chill</td><td>$current.windchill</td></tr>
>                         <tr><td>Heat 
> Index</td><td>$current.heatindex</td></tr>
>                         
> <tr><td>Dewpoint</td><td>$current.dewpoint</td></tr>
>                         
> <tr><td>Humidity</td><td>$current.outHumidity</td></tr>
>                         
> <tr><td>Barometer</td><td>$current.barometer</td></tr>
>                         <tr><td>Barometer Trend 
> ($trend.time_delta.hour.format("%.0f"))</td><td>$trend.barometer</td></tr>
>                         <tr><td>Wind</td><td>$current.windSpeed 
> $current.windDir.ordinal_compass ($current.windDir)</td></tr>
>                         <tr><td>Rain 
> Rate</td><td>$current.rainRate</td></tr>
>                         <tr><td>Inside 
> Temperature</td><td>$current.inTemp</td></tr>
>                         #if $day.extraTemp1.has_data
>                         <tr><td>Pond 
> Temperature</td><td>$current.extraTemp1</td></tr>
>                         #end if
>                         #if $day.UV.has_data
>                         <tr><td>UV</td><td>$current.UV</td></tr>
>                         #end if
>                         #if $day.ET.has_data and $day.ET.sum.raw > 0.0
>                         <tr><td>ET</td><td>$current.ET</td></tr>
>                         #end if
>                         #if $day.radiation.has_data
>                         <tr><td>Solar 
> Radiation</td><td>$current.radiation</td></tr>
>                         #end if
>                    </table>
>                 </div>
>                 
>
>
> <html>
>   <head>
> <h1>Forecast Table</h1>
> <p>
> Display forecast data in multiple tables, one table for each forecast 
> source.
> </p>
>
> #set global $forecast_table_settings = dict()
> #set global $forecast_table_settings['num_periods'] = 300
> #set global $forecast_table_settings['show_legend'] = 1
> #set global $forecast_table_settings['show_hourly'] = 1
> #set global $forecast_table_settings['show_day'] = 1
> #set global $forecast_table_settings['show_date'] = 1
> #set global $forecast_table_settings['show_outlook'] = 1
> #set global $forecast_table_settings['show_temp'] = 1
> #set global $forecast_table_settings['show_dewpoint'] = 1
> #set global $forecast_table_settings['show_wind'] = 1
> #set global $forecast_table_settings['show_tides'] = 1
> #set global $forecast_table_settings['show_sun'] = 1
> #set global $forecast_table_settings['show_moon'] = 1
> #set global $forecast_table_settings['show_pop'] = 1
> #set global $forecast_table_settings['show_precip'] = 1
> #set global $forecast_table_settings['show_obvis'] = 1
>
> <h2>Weather Underground</h2>
> #set global $forecast_table_settings['source'] = 'WU'
> #include "forecast_table.inc"
>
>
>
> </body>
> </html>
>
>         <div class="card" >
>                     <h1><i class="fa fa-moon-o m-grau" ></i> Since 
> Midnight</h1>
>                     <table class="tablespacer">
>                         <tr><td>High 
> Temperature</td><td>$day.outTemp.max</td><td>$day.outTemp.maxtime</td></tr>
>                         <tr><td>Low 
> Temperature</td><td>$day.outTemp.min</td><td>$day.outTemp.mintime</td></tr>
>                         <tr><td>High Heat 
> Index</td><td>$day.heatindex.max</td><td>$day.heatindex.maxtime</td></tr>
>                         <tr><td>Low Wind 
> Chill</td><td>$day.windchill.min</td><td>$day.windchill.mintime</td></tr>
>                         <tr><td>High 
> Dewpoint</td><td>$day.dewpoint.max</td><td>$day.dewpoint.maxtime</td></tr>
>                         <tr><td>Low 
> Dewpoint</td><td>$day.dewpoint.min</td><td>$day.dewpoint.mintime</td></tr>
>                         <tr><td>High 
> Humidity</td><td>$day.outHumidity.max</td><td>$day.outHumidity.maxtime</td></tr>
>                         <tr><td>Low 
> Humidity</td><td>$day.outHumidity.min</td><td>$day.outHumidity.mintime</td></tr>
>                         <tr><td>High 
> Barometer</td><td>$day.barometer.max</td><td>$day.barometer.maxtime</td></tr>
>                         <tr><td>Low 
> Barometer</td><td>$day.barometer.min</td><td>$day.barometer.mintime</td></tr>
>                         <tr><td>Today's 
> Rain</td><td>$day.rain.sum</td><td></td></tr>
>                         <tr><td>High Rain 
> Rate</td><td>$day.rainRate.max</td><td>$day.rainRate.maxtime</td></tr>
>                         <tr><td>High Wind</td><td>$day.wind.max 
> $day.wind.gustdir</td><td>$day.wind.maxtime</td></tr>
>                         <tr><td>Average 
> Wind</td><td>$day.wind.avg</td><td></td></tr>
>                         <tr><td>RMS 
> Wind</td><td>$day.wind.rms</td><td></td></tr>
>                         <tr><td>Vector Average 
> Speed</td><td>$day.wind.vecavg</td><td></td></tr>
>                         <tr><td>Vector Average 
> Direction</td><td>$day.wind.vecdir</td><td></td></tr>
>                         <tr><td>High Inside 
> Temperature</td><td>$day.inTemp.max</td><td>$day.inTemp.maxtime</td></tr>
>                         <tr><td>Low Inside 
> Temperature</td><td>$day.inTemp.min</td><td>$day.inTemp.mintime</td></tr>
>                         #if $day.extraTemp1.has_data
>                         <tr><td>High Pond 
> Temp</td><td>$day.extraTemp1.max</td><td>$day.extraTemp1.maxtime</td></tr>
>                         <tr><td>Low Pond 
> Temp</td><td>$day.extraTemp1.min</td><td>$day.extraTemp1.mintime</td></tr>
>                         #end if
>                         #if $day.UV.has_data
>                         <tr><td>High 
> UV</td><td>$day.UV.max</td><td>$day.UV.maxtime</td></tr>
>                         <tr><td>Low 
> UV</td><td>$day.UV.min</td><td>$day.UV.mintime</td></tr>
>                         #end if
>                         #if $day.ET.has_data and $day.ET.sum.raw >0.0
>                         <tr><td>High 
> ET</td><td>$day.ET.max</td><td>$day.ET.maxtime</td></tr>
>                         <tr><td>Low 
> ET</td><td>$day.ET.min</td><td>$day.ET.mintime</td></tr>
>                         #end if
>                         #if $day.radiation.has_data
>                         <tr><td>High 
> Radiation</td><td>$day.radiation.max</td><td>$day.radiation.maxtime</td></tr>
>                         <tr><td>Low 
> Radiation</td><td>$day.radiation.min</td><td>$day.radiation.mintime</td></tr>
>                         #end if
>                     </table>
>                 </div>
>
> Dne petek, 29. september 2017 14.50.14 UTC+2 je oseba mwall napisala:
>>
>>
>>
>> On Friday, September 29, 2017 at 8:35:19 AM UTC-4, Damjan Hajsek wrote:
>>>
>>> Thank you.
>>> I have tested forecast skin and it works.
>>> Can someone help me implenet this to my skin?
>>> http://vreme.povej.net/multiple-tables.html
>>>>
>>>>
>>>>
>> 1) add the ForecastVariables search list extension to the skin.conf for 
>> your report:
>>
>> [CheetahGenerator]
>>     search_list_extensions = user.forecast.ForecastVariables
>>     ...
>>
>> 2) include the tables in the template file (typically a file ending in 
>> .html.tmpl in your report):
>>
>> #set global $forecast_table_settings = dict()
>>
>> #set global $forecast_table_settings['source'] = 'WU'
>>
>> #include "forecast_table.inc"
>>
>> #set global $forecast_table_settings['source'] = 'NWS'
>>
>> #include "forecast_table.inc"
>>
>> #set global $forecast_table_settings['source'] = 'Aeris'
>>
>> #include "forecast_table.inc"
>>
>>
>> that is all!
>>
>> of course, you will not see NWS or aeris data until you add the 
>> credentials/locations for those services in the [Forecast] section of 
>> weewx.conf
>>
>> look at the contents of multiple-tables.html.tmpl for more options.  read 
>> the comments in forecast_table.inc for more details.  read the comments in 
>> forecast.py for even more details.
>>
>> 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.

Reply via email to