Weather by You!

Templates and Projects support => Html Templates => Topic started by: fastbysuzuki on October 26, 2013, 08:08:35 AM

Title: Disable Values
Post by: fastbysuzuki on October 26, 2013, 08:08:35 AM
Hi Jaques
               we are running a davis vantage pro2 with no extra sensors, i assume that the Solar Radiation, UV index and sunny values will never show so if that is the case how do i remove them from showing on the page?
i attach a screen shot in case it helps
thanks
Title: Re: Disable Values
Post by: Mr.Meteo on October 26, 2013, 08:36:42 AM
Hi Fast,


To remove this block, you have to edit your indexT.html file
to locate these lines and simply remove them:

Code: [Select]
<tr class="td_data">
<td>Solar Radiation</td>
<td><#SolarRad> W/m&sup2;</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>
<td>Current solar max</td>
<td><#CurrentSolarMax> W/m&sup2;</td>
</tr>

Hope this help!

Regards,
Jacques
Title: Re: Disable Values
Post by: fastbysuzuki on October 26, 2013, 01:40:02 PM
Hi Jacques
                   Thank you for the reply