Weather by You!
Templates and Projects support => Html Templates => Topic started by: weathernut 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?
-
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
-
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;
-
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
-
Hi Jacques,
Problem solved! Thanks again for your help!
Rob