Author Topic: Remove Few Items  (Read 8705 times)

Offline tfavors

  • Sr. Member
  • ****
  • Posts: 126
    • Weather Gray
Remove Few Items
« 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

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Remove Few Items
« Reply #1 on: May 28, 2013, 12:24:51 PM »
Hi Terry,

To remove reference to UV/Solar option, edit indexT.htm
at line #104, you will find that code, delete it completely:
Code: [Select]
</tr>
<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>

Now, you have to match remaining lines like this:
Code: [Select]
<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&sup2;</td>
</tr>

That is supposed to give you desired content.

Regards,
Jacques
Please, consider supporting this site 

Offline tfavors

  • Sr. Member
  • ****
  • Posts: 126
    • Weather Gray
Re: Remove Few Items
« Reply #2 on: May 28, 2013, 01:42:18 PM »
Just checking you r saying delete all on the top/first picture and replace it with the bottom code??

Delete and Replace?

Thanks, Terry

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Remove Few Items
« Reply #3 on: May 28, 2013, 03:22:44 PM »
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&sup2;</td>

and 3 lines below, there is an empty space filled with spaces
<td>&nbsp;</td>
<td>&nbsp;</td>

So, we take the 2 lines left from top box operation and replace
these 2 lines ("&nbsp;" 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
Please, consider supporting this site 

Offline tfavors

  • Sr. Member
  • ****
  • Posts: 126
    • Weather Gray
Re: Remove Few Items
« Reply #4 on: May 29, 2013, 05:04:08 AM »
Thank you I will give this a try this weekend got to read it few more times, lol Thanks, Terry

Offline tfavors

  • Sr. Member
  • ****
  • Posts: 126
    • Weather Gray
Re: Remove Few Items
« Reply #5 on: June 06, 2013, 12:04:57 PM »
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