Author Topic: Adjusting the "Comfort Levels"  (Read 6201 times)

0 Members and 1 Guest are viewing this topic.

Offline wello

  • Welloweather
  • Senior Contributor
  • ****
  • Posts: 150
  • Welloweather
    • Welloweather
Adjusting the "Comfort Levels"
« on: January 23, 2009, 09:58:02 PM »
Anyone know how to adjust the "Comfort Levels"?

At 31.8C (89.2F) the software reports "Warm". At 32.4 (90.3F) its reporting "Extremely Hot" and by 34C (93.2F) is says "Dangerously hot".

I guess its a bit subjective but I wouldn't call 34C "Dangerously Hot" and whatever happened to just "Hot"? It's almost like "Hot" was skipped and the levels above all moved down to fill the space.
Peter
www.welloweather.info
OS WMR-200 with V14.01 P22 on Windows Vista

Offline offroadjosh

  • Davis Vp2 Wireless- VWS 14 P90 Serial Data logger
  • Forecaster
  • *****
  • Posts: 967
  • Montana Firefighter
    • My Website=)
Re: Adjusting the "Comfort Levels"
« Reply #1 on: January 23, 2009, 10:10:06 PM »
yes i agree with you, as it reads uncomfortably cold  from  like 32 and below and extreme cold when its below zero, wish i could adjust it to read extreme cold when its like -20 and colder and uncomfortably cold 10 degrees and colder, then maybe cold when its 20 and lower and cool 30 and lower


Josh Patten

Davis VP2 Wireless -May 2008
VWS 14.00P90\WL 5.9.9/Plus others!
Skywarn trained
CoCoRaHS member
Smith Valley Fire Dept Firefighter:)
http://josh.northwestwx.com/station/usa.htm
CWOP-DW0711
Kestrel 2000 hand held anemometer
Cocorahs 4in rain gauge
Custom co

Offline mackbig

  • Forecaster
  • *****
  • Posts: 4128
    • Mackie's Main Street, Unionville, ON Canada Weather
Re: Adjusting the "Comfort Levels"
« Reply #2 on: January 24, 2009, 09:09:32 AM »
its not configurable.  I wish it was for the other end of the spectrum.  At -1c it says uncomfortably cold.  -1c is downright balmy in the winter, -15 in my opinioin is uncomfortably cold.
Andrew

Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64

Offline sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2865
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
Re: Adjusting the "Comfort Levels"
« Reply #3 on: January 24, 2009, 09:13:40 AM »
Anyone know how to adjust the "Comfort Levels"?
....

Only Ed has that power.

But the Comfort index is not soley based on the Temperature value, there are other factors.

SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline racenet

  • Moderator
  • Forecaster
  • *****
  • Posts: 1306
    • NH Weather Data
Re: Adjusting the "Comfort Levels"
« Reply #4 on: January 24, 2009, 09:39:07 AM »
And why would you want to change them? They follow a set standard of calculations for each catagory. Reporting the levels as anything different would be incorrect.



Bob
 
www.theamericanflagstore.com - The American Flag Store



www.nhweatherdata.com - NH Weather Data

Offline mackbig

  • Forecaster
  • *****
  • Posts: 4128
    • Mackie's Main Street, Unionville, ON Canada Weather
Re: Adjusting the "Comfort Levels"
« Reply #5 on: January 24, 2009, 10:06:13 AM »
What standard?  A google of "comfort index" does not give any scientfic hits that would denote this is a widely accepted measure.  Its a good guide, but does not apply equally to all regions.  For example Fort Myers had a wind chill advisory based on -2c wind chill the other day... That would not even get a mention here.   It not like changing the definition of the Beaufort scale or something....

I dont think Ed should change VWS due to this, but I think it would be cool to be able to create your own varation.  I am sure a PHP wiz could come up with a user definable way to display for a site.

Andrew



And why would you want to change them? They follow a set standard of calculations for each catagory. Reporting the levels as anything different would be incorrect.



Bob
 

Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64

Offline wello

  • Welloweather
  • Senior Contributor
  • ****
  • Posts: 150
  • Welloweather
    • Welloweather
Re: Adjusting the "Comfort Levels"
« Reply #6 on: January 24, 2009, 10:49:56 AM »
I think some of us missed what I was getting at.

I wanted to change (slightly tweak) the settings because:

1) It seems strange that the next level up from WARM is UNCOMFORTABLY HOT. Surely HOT should come between those two.

2) To say it is DANGEROUSLY HOT when it hits around 34C (yes, I know Heat Index has to be figured in here as well) is a little alarmist. In this part of Australia, many Summer days hover around this mark and over. To have these days classified DANGEROUSLY HOT seems to be overstating the situation slightly. I'd be reserving that for somewhere around the 40C mark.
Peter
www.welloweather.info
OS WMR-200 with V14.01 P22 on Windows Vista

Offline sam2004gp

  • Mount Crawford, Virginia
  • Forecaster
  • *****
  • Posts: 2865
  • Weeeeeeeee!!!!
    • Mount Crawford Weather, VA
Re: Adjusting the "Comfort Levels"
« Reply #7 on: January 24, 2009, 11:27:07 AM »
I think some of us missed what I was getting at.

I wanted to change (slightly tweak) the settings because:

1) It seems strange that the next level up from WARM is UNCOMFORTABLY HOT. Surely HOT should come between those two.

2) To say it is DANGEROUSLY HOT when it hits around 34C (yes, I know Heat Index has to be figured in here as well) is a little alarmist. In this part of Australia, many Summer days hover around this mark and over. To have these days classified DANGEROUSLY HOT seems to be overstating the situation slightly. I'd be reserving that for somewhere around the 40C mark.

A valid point.. :-)
SAM --->>> http://www.mountcrawfordweather.org
OS WMR-968 with a Dedicated PWS Weather Computer running VWS v13.01 p09


Offline offroadjosh

  • Davis Vp2 Wireless- VWS 14 P90 Serial Data logger
  • Forecaster
  • *****
  • Posts: 967
  • Montana Firefighter
    • My Website=)
Re: Adjusting the "Comfort Levels"
« Reply #8 on: January 24, 2009, 11:37:29 AM »
is there maybe a file in the vws   directory that has comfort level? so maybe you can adjust it in the file??(i have no idea.. i know  nothing about computers, it was jjust an idea)


Josh
Josh Patten

Davis VP2 Wireless -May 2008
VWS 14.00P90\WL 5.9.9/Plus others!
Skywarn trained
CoCoRaHS member
Smith Valley Fire Dept Firefighter:)
http://josh.northwestwx.com/station/usa.htm
CWOP-DW0711
Kestrel 2000 hand held anemometer
Cocorahs 4in rain gauge
Custom co

blackjack52

  • Guest
Re: Adjusting the "Comfort Levels"
« Reply #9 on: January 24, 2009, 12:29:05 PM »
I noticed it couldn't be changed, so I just use the Heat Stress tag for summer and Wind Chill for winter - these are more important to us anyway.  I also use the HI - WC tags to postthe current temp spread as a workaround to the Comf Lvl.

Offline LFWX

  • Forecaster
  • *****
  • Posts: 1089
  • Liberty Township, Butler County, Ohio
    • Liberty Fairfield Weather Center
Re: Adjusting the "Comfort Levels"
« Reply #10 on: January 25, 2009, 09:45:58 PM »
I've created my own 'comfort level' using the 5 minute average THW Index.
The time span used for averages is under 'settings' - 'advanced parameter settings' inside the the 'wind gust calculations' area change the 'filtered average time constant' to 5 minutes (this adjusts ALL the "Avg" values, not just wind speed).
I use the same rounded average THW value I'm using in my welcome banner.

Rounded THW Index script:
Code: [Select]
<script language="JavaScript">
e = Number(^vva165^);
var thwavg = Math.round(e);
</SCRIPT>

Comfort Level script: not sure if these are the correct temperatures to use, I used the existing VWS numbers as a guide,
Code: [Select]
<SCRIPT LANGUAGE = "JavaScript">
if (thwavg < 1) document.write("Extremely Cold");
else if (thwavg < 21) document.write("Uncomfortably Cold");
else if (thwavg < 41) document.write("Cold");
else if (thwavg < 61) document.write("Cool");
else if (thwavg < 81) document.write("Comfortable");
else if (thwavg < 91) document.write("Warm");
else if (thwavg < 96) document.write("Hot");
else if (thwavg < 101) document.write("Uncomfortably Hot");
else document.write("Extremely Hot");
</script>

-Mike
Station: Davis Vantage Pro2 Fan Aspirated
Software: Virtual Weather Station V14.00p64
www.LFWeatherCenter.com
CWOP: DW1039
CoCoRaHS: OH-BT-1
Weather Underground: KOHHAMIL7
Weather For You: DW1039
Midwestern Weather Network

blackjack52

  • Guest
Re: Adjusting the "Comfort Levels"
« Reply #11 on: January 25, 2009, 09:57:00 PM »
Wow.  This is great.  Thank you.  I'll plug the script in tomorrow.

Offline mackbig

  • Forecaster
  • *****
  • Posts: 4128
    • Mackie's Main Street, Unionville, ON Canada Weather
Re: Adjusting the "Comfort Levels"
« Reply #12 on: January 25, 2009, 10:58:06 PM »
Mike,
This is great.  I am going to see if I can get it to work with my humidex calc to Canadianize it.

Andrew

Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64

Offline mackbig

  • Forecaster
  • *****
  • Posts: 4128
    • Mackie's Main Street, Unionville, ON Canada Weather
Re: Adjusting the "Comfort Levels"
« Reply #13 on: January 25, 2009, 11:12:07 PM »
Mike,
My humidex value is created by javascript as well.  It creates a file called humidex.js, which my various pages call to display the value.

Any idea how I would change this line in your code
Code: [Select]
e = Number(^vva165^);
So that it would call my javascript value for humidex, since I cant use a VWS tag, since VWS does not do humidex?

I tried this
Code: [Select]
e = Number(src="humidex.js"); and
Code: [Select]
e = Number(<script language="javascript" src="humidex.js"></script>);
but neither seemed to work

Andrew

Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64

Offline dsscheibe

  • Senior Member
  • **
  • Posts: 98
    • Scott's Weather Station Cactus Wren, Phoenix, AZ
Re: Adjusting the "Comfort Levels"
« Reply #14 on: January 25, 2009, 11:14:06 PM »
  Those of us who live in Phoenix, AZ (where Ed is) laugh at it saying dangerously hot over 93 when we live at 105f+ on a regular basis during the summer.  Since he lives here you'd think he'd put something more reasonable.
Scott
Davis Pro2 Plus daytime aspirated, wired
Weather Display


Offline offroadjosh

  • Davis Vp2 Wireless- VWS 14 P90 Serial Data logger
  • Forecaster
  • *****
  • Posts: 967
  • Montana Firefighter
    • My Website=)
Re: Adjusting the "Comfort Levels"
« Reply #15 on: January 26, 2009, 12:59:40 AM »
right now its  -1.8*F (not to bad)  but it says extreme cold those of us up north are use to temps below zero and usually dont consider cold till -15 or so.

Josh Patten

Davis VP2 Wireless -May 2008
VWS 14.00P90\WL 5.9.9/Plus others!
Skywarn trained
CoCoRaHS member
Smith Valley Fire Dept Firefighter:)
http://josh.northwestwx.com/station/usa.htm
CWOP-DW0711
Kestrel 2000 hand held anemometer
Cocorahs 4in rain gauge
Custom co

blackjack52

  • Guest
Re: Adjusting the "Comfort Levels"
« Reply #16 on: January 26, 2009, 11:42:58 AM »
Script works beautifully.  Thanks again.
Is there a way to make the text for the verbiage each a diff color :?:
<script language="JavaScript">
e = Number(^vva165^);
var thwavg = Math.round(e); </script>
<script language="JavaScript">
if (thwavg < 1) document.write("Dangerously Cold");            pink
else if (thwavg < 21) document.write("Freakin' Cold");          white
else if (thwavg < 41) document.write("Cold");                     blue
else if (thwavg < 61) document.write("Chilly");                    green, etc
else if (thwavg < 81) document.write("Feels Good");
else if (thwavg < 91) document.write("Warm");
else if (thwavg < 96) document.write("Hot");
else if (thwavg < 101) document.write("Freakin' Hot");
else document.write("Dangerously Hot");
</script>

Offline LFWX

  • Forecaster
  • *****
  • Posts: 1089
  • Liberty Township, Butler County, Ohio
    • Liberty Fairfield Weather Center
Re: Adjusting the "Comfort Levels"
« Reply #17 on: January 30, 2009, 07:36:04 PM »
I'm sure it can be done, but I have no idea how. I'm still pretty new at this.

I was unable to get my weather advisory message to change from green to bold red, but my brother worked it out.

The code for that is below. If you can figure it out, maybe the same type of thing could be used to change the colors of the comfort levels.

Code: [Select]
<!-- warning message -->
        <tr>
<td style="width:770" align="center"><font face="Arial" id="warning">^warning_desc1^</font></td>
        </tr>


<script type="text/javascript">
el = document.getElementById("warning");
if ((el.innerHTML) == "No Warning") {
el.style.color = "green";
el.style.fontStyle = "italic";
el.innerHTML = "No active weather advisories at ^vst143^";
} else {
el.style.color = "red";
el.style.fontWeight = "bold";
}
</script>

By the way - the comfort levels will certainly be different for each part of the world - I see that part of Florida is under a wind chill advisory because the wind chill will be 20, which may seem a "little strange" to someone up north!
Station: Davis Vantage Pro2 Fan Aspirated
Software: Virtual Weather Station V14.00p64
www.LFWeatherCenter.com
CWOP: DW1039
CoCoRaHS: OH-BT-1
Weather Underground: KOHHAMIL7
Weather For You: DW1039
Midwestern Weather Network

blackjack52

  • Guest
Re: Adjusting the "Comfort Levels"
« Reply #18 on: January 30, 2009, 08:01:36 PM »
Thanks.  I'll see what I can do.

Offline dsscheibe

  • Senior Member
  • **
  • Posts: 98
    • Scott's Weather Station Cactus Wren, Phoenix, AZ
Re: Adjusting the "Comfort Levels"
« Reply #19 on: July 12, 2009, 07:44:29 PM »
Changing the color of the text can be done a couple of ways.  You could use a
Code: [Select]
<font color="red">really hot</font>  Or you can use a style sheet and a style selector, CSS or cascading style sheets is the recommended method and using font is depreciated in current code practices.  I have removed all the font tags from my websites and switched to an external style sheet.  Style sheets are really cool because you can change something in your style.css and if you have linked to it on ever page of your site it will change the element site wide with just changing one bit of code in one file. 

First you need a file named something like style.css, you can call it anything you want as long as the extension is .css Upload it with your .htm files on your site.  I call mine for my weather page weatherstyle.css  You link it to your page using the code below, it has to be above the head tag at the top of your page which I included in the code, be sure you do not have two closing
Code: [Select]
</head> tags.

Code: [Select]
 
   <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  <link rel="stylesheet" type="text/css" href="style.css" title="Default">
 </head>

Your style.css  needs to have this code in it for the existing script I'm posting below to work.  You can change the colors, font-size, and font-weight to suite your needs.  You can add what ever valid css commands to the style sheet you want, but this has to be in it for the comfort script below to set the colors for the text.
Code: [Select]

/* selectors for font sizes and color comfort level script IE <span class="DHOT">Dangerously Hot</span>  */
.UCOLD {
Color: White;
font-size: 16px;
font-weight: 600;
}

.COLD {
Color: #F8F8FF;
font-size: 16px;
font-weight: 600;
}

.COOL {
Color: Aqua;
font-size: 16px;
font-weight: 600;
}


.COM {
Color: Blue;
font-size: 16px;
font-weight: 600;
}


.WARM {
Color: #FFCC00;
font-size: 16px;
font-weight: 600;
}


.HOT {
Color: #FF9900;
font-size: 16px;
font-weight: 600;
}


.UHOT {
Color: #FF9933;
font-size: 18px;
font-weight: 600;
}


.EHOT {
Color: #FF3333;
font-size: 18px;
font-weight: 600;
}


.DHOT {
Color: Red;
font-size: 16px;
font-weight: 600;
}



I've modified the original code a bit to suite my need here in Phoenix and added the color changes.  you can see it working on my website at http://members.cox.net/dsscheibe/vws/index.html  you can see my style sheet for the website  here, the selectors for the script are at the bottom of the sheet.  http://members.cox.net/dsscheibe/vws/weatherstyle.css

Code: [Select]

<!--     ^vst137^ ^uni137^  -->
 <script language="JavaScript" type="text/JavaScript">
e = Number(^vva165^);
var thwavg = Math.round(e);
</SCRIPT>
 <script language="JavaScript" type="text/JavaScript">
if (thwavg < 1) document.write("Extremely Cold");
else if (thwavg < 21) document.write("<span class=UCOLD>Uncomfortably Cold</span>");
else if (thwavg < 41) document.write("<span class=COLD>Cold</span>");
else if (thwavg < 61) document.write("<span class=COOL>Cool</span>");
else if (thwavg < 81) document.write("<span class=COM>Comfortable</span>");
else if (thwavg < 91) document.write("<span class=WARM>Warm</span>");
else if (thwavg < 96) document.write("<span class=HOT>Hot</span>");
else if (thwavg < 103) document.write("<span class=UHOT>Uncomfortably Hot</span>");
else if (thwavg < 108) document.write("<span class=EHOT>Extremely Hot</span>");
else document.write("<span class=DHOT>Dangerously Hot</span>");
</script>
<noscript>
^vst137^ ^uni137^
</noscript>


Scott
Davis Pro2 Plus daytime aspirated, wired
Weather Display


Offline LFWX

  • Forecaster
  • *****
  • Posts: 1089
  • Liberty Township, Butler County, Ohio
    • Liberty Fairfield Weather Center
Re: Adjusting the "Comfort Levels"
« Reply #20 on: July 20, 2009, 02:05:18 PM »
Yes, that would be much better than the way I ended up doing it - setting a color, checking the condition, switching to the next color, checking the condition...

My whole site is full of "strange" programming like this, but I haven't had time to learn the correct ways and rebuild the site - but it does work!

Example:
(setting the comfort index - including a few new desriptions)
Code: [Select]
if (thwavg < -15) {comfortindex = "Dangerously Cold";}
else if (thwavg < 0) {comfortindex = "Extremely Cold";}
else if (thwavg < 10) {comfortindex = "Very Cold";}
else if (thwavg < 20) {comfortindex = "Uncomfortably Cold";}
else if (thwavg < 40) {comfortindex = "Cold";}
else if (thwavg < 60) {comfortindex = "Cool";}
else if (thwavg < 80) {comfortindex = "Comfortable";}
else if (thwavg < 85) {comfortindex = "Warm";}
else if (thwavg < 90) {comfortindex = "Very Warm";}
else if (thwavg < 95) {comfortindex = "Hot";}
else if (thwavg < 100) {comfortindex = "Uncomfortably Hot";}
else if (thwavg < 110) {comfortindex = "Extremely Hot";}
else {comfortindex = "Dangerously Hot";}

(setting the color)
Code: [Select]
<font face="Arial" color="blue"><small><b><i><SCRIPT LANGUAGE = "JavaScript">
if (thwavg < 40) document.write(comfortindex);
</script></b></i></small></font><font face="Arial" color="darkgreen"><small><b><i><SCRIPT LANGUAGE = "JavaScript">
if (thwavg > 39 && thwavg < 80) document.write(comfortindex);
</script></b></i></small></font><font face="Arial" color="darkorange"><small><b><i><SCRIPT LANGUAGE = "JavaScript">
if (thwavg > 79 && thwavg < 90) document.write(comfortindex);
</script></b></i></small></font><font face="Arial" color="red"><small><b><i><SCRIPT LANGUAGE = "JavaScript">
if (thwavg > 89) document.write(comfortindex);
</script></b></i></small></font>

I think when I originally tried <color="red"> in my code, it didn't work, so this was my solution.
Station: Davis Vantage Pro2 Fan Aspirated
Software: Virtual Weather Station V14.00p64
www.LFWeatherCenter.com
CWOP: DW1039
CoCoRaHS: OH-BT-1
Weather Underground: KOHHAMIL7
Weather For You: DW1039
Midwestern Weather Network

 

anything