Author Topic: Disable Values  (Read 1614 times)

Offline fastbysuzuki

  • Jr. Member
  • **
  • Posts: 44
    • Welcome to nci fleetwood
Disable Values
« 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

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Disable Values
« Reply #1 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
Please, consider supporting this site 

Offline fastbysuzuki

  • Jr. Member
  • **
  • Posts: 44
    • Welcome to nci fleetwood
Re: Disable Values
« Reply #2 on: October 26, 2013, 01:40:02 PM »
Hi Jacques
                   Thank you for the reply