Author Topic: How to remove certain readings from WB 1 index page?  (Read 8433 times)

Offline weathernut

  • Jr. Member
  • **
  • Posts: 10
    • Surrey, BC Weather
How to remove certain readings from WB 1 index page?
« on: February 19, 2014, 04:20:13 PM »
I have 4 readings on my "now" page which constantly read "0" probably because I do not have solar\uv sensors on my Davis Vantage Vue station. They are "Feels like(with sun)","Evapotranspiration Today","Solar radiation" and "Lux". Can I edit the indexT.htm page to somehow rid of these readings?
« Last Edit: February 19, 2014, 04:30:37 PM by weathernut »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: How to remove certain readings from WB 1 index page?
« Reply #1 on: February 19, 2014, 05:11:14 PM »
Hi Rob,

Easiest way to do it is to update to the latest version.
I've enhance it to handle these optional sensors rightly.

Regards,
Jacques
Please, consider supporting this site 

Offline weathernut

  • Jr. Member
  • **
  • Posts: 10
    • Surrey, BC Weather
Re: How to remove certain readings from WB 1 index page?
« Reply #2 on: February 19, 2014, 10:50:46 PM »
Hi Jacques,
I am using WB v1_1 presently. Is there a newer version? The creation date for the indexT.htm file is 1/12/14.
Rob

Davis Vantage Vue
Cumulus  1.9.4
Weather Blues v1_1

//  -- Configuration section --
   // If you have a Fine Offset Model 3080
   fo_3080 = false;
   // If you have a Hydreon RG-11
   sensor_rg = false;
   // Check if you have a Davis station
   if (<#DavisTotalPacketsReceived> == 0)
      davis = false;
   else
      davis = true;
   // Check if you have a UV Sensor
   if ((<#UV> == 0) && (<#UVTH> == 0) && (<#UVYH> == 0) && (<#RecentUV> == 0))
      sensor_uv = false;
   else
      sensor_uv = true;
   // Check if you have a Solar Sensor
   if (("<#ET>" == "0,00") && (<#SolarRad>==0) && (<#solarTH>==0) && (<#solarYH>==0) && (<#RecentSolarRad>==0))
      sensor_solar = false;
   else
      sensor_solar = true;
« Last Edit: February 19, 2014, 11:03:33 PM by weathernut »

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: How to remove certain readings from WB 1 index page?
« Reply #3 on: February 20, 2014, 05:05:24 PM »
Hi Rob,

As you've spotted the right place too look at, I'll give
you a small recipe:

1st, there is an error on line #191

if (fo_3080 == false)
should be:
if (fo_3080 == true)

For others, the problem is with decimal numbers, so the easiest
way to correct them is to replace all these "if" with your answers
to these "questions":

// If you (don't) have a Fine Offset Model 3080
fo_3080 = false;

// If you (don't) have a Hydreon RG-11
sensor_rg = false;

// If you have a Davis station
davis = true;

//  If you (don't) have a UV Sensor
sensor_uv = false;

// If you (don't) have a Solar Sensor
sensor_solar = false;

This is the short way, other way is to look at the processed file
to see where adjustments need to be done.
(like this one: if ((0.0 == 0) && (0.0 == 0) && (0.0 == 0) && (0.0 == 0))  )

Regards,
Jacques
Please, consider supporting this site 

Offline weathernut

  • Jr. Member
  • **
  • Posts: 10
    • Surrey, BC Weather
Re: How to remove certain readings from WB 1 index page?
« Reply #4 on: February 20, 2014, 05:47:47 PM »
Hi Jacques,

Problem solved! Thanks again for your help!
Rob