Weather by You!
Templates and Projects support => Html Templates => Topic started by: tfavors on May 28, 2013, 09:34:34 AM
-
Is it possible to remove a few items since my weather station does not support these and they receive no data? No need for viewers to see these and think something not working. Attached photo of what I would like to remove. Thanks if anyone knows how? Terry
-
Hi Terry,
To remove reference to UV/Solar option, edit indexT.htm
at line #104, you will find that code, delete it completely:</tr>
<tr class="td_data">
<td>Solar Radiation</td>
<td><#SolarRad> W/m²</td>
<td>UV index</td>
<td><#UV></td>
</tr>
<tr class="td_data">
<td>Sunny</td>
<td>
<script type="text/javascript">
sun = '<#IsSunny>';
if (sun == '0') {sun='No';}
else {sun = 'Yes'};
document.write(sun);
</script>
</td>
Now, you have to match remaining lines like this:
<tr class="td_data">
<td>Windchill</td>
<td><#wchill> <#tempunit></td>
<td>Evapotranspiration Today</td>
<td><#ET> <#rainunit></td>
</tr>
<tr class="td_data">
<td>Cloud base</td>
<td><#cloudbase></td>
<td>Current solar max</td>
<td><#CurrentSolarMax> W/m²</td>
</tr>
That is supposed to give you desired content.
Regards,
Jacques
-
Just checking you r saying delete all on the top/first picture and replace it with the bottom code??
Delete and Replace?
Thanks, Terry
-
Hi Terry,
No! You have to check what you make! I give you way
to remove unwanted lines (top box), but 2 lines will remain
<td>Current solar max</td>
<td><#CurrentSolarMax> W/m²</td>
and 3 lines below, there is an empty space filled with spaces
<td> </td>
<td> </td>
So, we take the 2 lines left from top box operation and replace
these 2 lines (" " is for non-breakable space)
So, result supposed to be like 2nd box (image show results
with a few lines before it, as a guide into file)
Hope this help,
Regards,
Jacques
-
Thank you I will give this a try this weekend got to read it few more times, lol Thanks, Terry
-
Ok I finally got around to giving this a try. I have not tried it on my weather site yet. Just wanted you to see if I followed your instructions correctly? Thanks look it over when you have time..
Terry