Author Topic: Forecast Icons in Carter Lake template  (Read 3540 times)

0 Members and 1 Guest are viewing this topic.

Offline MesquiteWx

  • Forecaster
  • *****
  • Posts: 610
    • Mesquite Weather
Forecast Icons in Carter Lake template
« on: August 08, 2008, 08:25:57 AM »
It is currently lightly raining at the moment (0.02 total 0.04 rain rain) The Current Icon shows snow flurries. Ok Really? Snow flurries in Aug in Texas LoL... Where do I need to go to rename these and set them accordingly?

-Thanks

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast Icons in Carter Lake template
« Reply #1 on: August 08, 2008, 12:23:38 PM »
Are you talking about the current icon in the ajax-dashboard (just above the thermometer image)?

If so, that icon is set by Weather-Display as one of 35 possible icons as WD tag %iconnumber% and in clientraw[48].

You're currently showing 'Overcast' (icon 18 ).   

There are two lookup tables for which image to use based on icon number:
first in the ajax-dashboard.php there's
Code: [Select]
// pick the NOAA style condition icon based on iconnumber
function newIcon($numb) {

  $iconList = array(
"skc.jpg",          //  0 imagesunny.visible
"nskc.jpg",         //  1 imageclearnight.visible
"bkn.jpg",          //  2 imagecloudy.visible
"sct.jpg",          //  3 imagecloudy2.visible
"nbkn.jpg",         //  4 imagecloudynight.visible
"sct.jpg",          //  5 imagedry.visible
"fg.jpg",           //  6 imagefog.visible
"hazy.jpg",         //  7 imagehaze.visible
"ra.jpg",           //  8 imageheavyrain.visible
"few.jpg",          //  9 imagemainlyfine.visible
"mist.jpg",         // 10 imagemist.visible
"nfg.jpg",          // 11 imagenightfog.visible
"nra.jpg",          // 12 imagenightheavyrain.visible
"novc.jpg",         // 13 imagenightovercast.visible
"nra.jpg",          // 14 imagenightrain.visible
"nshra.jpg",        // 15 imagenightshowers.visible
"nsn.jpg",          // 16 imagenightsnow.visible
"ntsra.jpg",        // 17 imagenightthunder.visible
"ovc.jpg",          // 18 imageovercast.visible
"sct.jpg",          // 19 imagepartlycloudy.visible
"ra.jpg",           // 20 imagerain.visible
"ra.jpg",           // 21 imagerain2.visible
"shra.jpg",         // 22 imageshowers2.visible
"ip.jpg",           // 23 imagesleet.visible
"ip.jpg",           // 24 imagesleetshowers.visible
"sn.jpg",           // 25 imagesnow.visible
"sn.jpg",           // 26 imagesnowmelt.visible
"sn.jpg",           // 27 imagesnowshowers2.visible
"skc.jpg",          // 28 imagesunny.visible
"scttsra.jpg",      // 29 imagethundershowers.visible
"hi_tsra.jpg",      // 30 imagethundershowers2.visible
"tsra.jpg",         // 31 imagethunderstorms.visible
"nsvrtsra.jpg",     // 32 imagetornado.visible
"wind.jpg",         // 33 imagewindy.visible
"ra1.jpg",          // 34 stopped rainning
"windyrain.jpg"     // 35 windy/rain
);

return($iconList[$numb]);
}
  and for the AJAX, in ajaxWDwx.js there is
Code: [Select]
function ajax_wxIconJPG ( iconWD ) {
// perform a lookup and return the graphic for the condition icon (using NWS icons)
  $iconList = new Array(
"skc.jpg",          //  0 imagesunny.visible
"nskc.jpg",         //  1 imageclearnight.visible
"bkn.jpg",          //  2 imagecloudy.visible
"sct.jpg",          //  3 imagecloudy2.visible
"nbkn.jpg",         //  4 imagecloudynight.visible
"sct.jpg",          //  5 imagedry.visible
"fg.jpg",           //  6 imagefog.visible
"hazy.jpg",         //  7 imagehaze.visible
"ra.jpg",           //  8 imageheavyrain.visible
"few.jpg",          //  9 imagemainlyfine.visible
"mist.jpg",         // 10 imagemist.visible
"nfg.jpg",          // 11 imagenightfog.visible
"nra.jpg",          // 12 imagenightheavyrain.visible
"novc.jpg",         // 13 imagenightovercast.visible
"nra.jpg",          // 14 imagenightrain.visible
"nshra.jpg",        // 15 imagenightshowers.visible
"nsn.jpg",          // 16 imagenightsnow.visible
"ntsra.jpg",        // 17 imagenightthunder.visible
"ovc.jpg",          // 18 imageovercast.visible
"bkn.jpg",          // 19 imagepartlycloudy.visible
"ra.jpg",           // 20 imagerain.visible
"ra.jpg",           // 21 imagerain2.visible
"shra.jpg",         // 22 imageshowers2.visible
"ip.jpg",           // 23 imagesleet.visible
"ip.jpg",           // 24 imagesleetshowers.visible
"sn.jpg",           // 25 imagesnow.visible
"sn.jpg",           // 26 imagesnowmelt.visible
"sn.jpg",           // 27 imagesnowshowers2.visible
"skc.jpg",          // 28 imagesunny.visible
"scttsra.jpg",      // 29 imagethundershowers.visible
"hi_tsra.jpg",      // 30 imagethundershowers2.visible
"tsra.jpg",         // 31 imagethunderstorms.visible
"nsvrtsra.jpg",     // 32 imagetornado.visible
"wind.jpg",         // 33 imagewindy.visible
"ra1.jpg",          // 34 stopped rainning
"windyrain.jpg"     // 35 windy/rain (new with V2.11)
);

  if (iconWD >= 0 && iconWD <= 35) {
    return ("<img src=\"" + imagedir + "/" + $iconList[iconWD] + "\" " +
"width=\"55\" height=\"58\" alt=\"Current condition icon\" />" );
  } else {
return '';
  }

}

So, for you to see the Snow icon, the iconnumber  would need to be [16,25,26,27] ..

Check your settings in WD Control Panel, Summary Image/Icon Setup, Thresholds to set icon/conditions colour TAB
and make sure the values for Sleet Icon Temperature threshold and Snow Icon Temperature Threshold are set to something reasonable (I have 3 C for Sleet and 2 C for Snow).

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline MesquiteWx

  • Forecaster
  • *****
  • Posts: 610
    • Mesquite Weather
Re: Forecast Icons in Carter Lake template
« Reply #2 on: August 08, 2008, 10:52:09 PM »
Are you talking about the current icon in the ajax-dashboard (just above the thermometer image)?

Yes exactly, I checked the settings at they are showing actually as you have yours. I even went has far as loading the default. I have noticed the past couple days it seems to always show over cast on my banner in my signature. I think right now it is showing snow...LoL I am not sure what is going on with it. Any other ideas?

Offline WeatherBeacon

  • Chief
  • Forecaster
  • *****
  • Posts: 1369
    • http://www.wxbeacon.com
Re: Forecast Icons in Carter Lake template
« Reply #3 on: August 08, 2008, 10:59:57 PM »


Are you talking about the current icon in the ajax-dashboard (just above the thermometer image)?

Yes exactly, I checked the settings at they are showing actually as you have yours. I even went has far as loading the default. I have noticed the past couple days it seems to always show over cast on my banner in my signature. I think right now it is showing snow...LoL I am not sure what is going on with it. Any other ideas?

Does this occur only at night? Are you sure those aren't stars? :lol:

Kevin...
Mae govannen!
Kevin  (Member AMS) http://www.wxbeacon.com               Genesee County, Michigan
Hardware:  Davis Vantage Pro Wireless, Midland WR-300
Software: VWS 14.01p43, WeatherFlash, & GRLevel3

Offline MesquiteWx

  • Forecaster
  • *****
  • Posts: 610
    • Mesquite Weather
Re: Forecast Icons in Carter Lake template
« Reply #4 on: August 08, 2008, 11:41:15 PM »
Nah, it seems to have cleared up now after I set everything back to default. Everything was set to default anyways because I had not messed with any of that so not sure what happened. Today was the first time it had started and last night. When it started raining today it showed light snow icon and can't remember what it said. Then my banner below always showed overcast when it wasn't and then earlier it was showing the snow icon but seems to have cleared up now. Snow in Texas in Aug would be nice right now though, but that would mean hell had froze over.... :lol: Of course Brett Favre is A NY Jet so it is possible that might have happened...LoL

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast Icons in Carter Lake template
« Reply #5 on: August 09, 2008, 12:23:36 AM »
I've seen a couple of posts on Weather-Watch.com/smf/  (Weather Display forum) about strange appearance of Snow icon.

I'd suggest you post the question there and see what Brian (windy) has to say about it.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline MesquiteWx

  • Forecaster
  • *****
  • Posts: 610
    • Mesquite Weather
Re: Forecast Icons in Carter Lake template
« Reply #6 on: August 09, 2008, 05:17:47 PM »
Thanks, I will keep an eye on things and if it happens again I will drop a post over there.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Forecast Icons in Carter Lake template
« Reply #7 on: August 09, 2008, 05:45:53 PM »
Here's a handy little page that can show you the values for both the %wdtags% and clientraw.txt values on a small table.

I have it running at http://saratoga-weather.org/WD-conditions.php

Source at http://saratoga-weather.org/WD-conditions.php?sce=view  (you may need mods to make it work on your site).

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline MesquiteWx

  • Forecaster
  • *****
  • Posts: 610
    • Mesquite Weather
Re: Forecast Icons in Carter Lake template
« Reply #8 on: August 09, 2008, 07:11:09 PM »
Thanks for sharing that. It is pretty pretty nifty and I have it running now.

http://www.mesquitechristmas.com/weather/WD-conditions.php