Heat Index off is it 10.37D or Ajax?

Here is what i am seeing, was wondering over the last few days on what was going on. and now i see it.
Using the Ajax my heat index shows on my main page 96 and also other pages that are using ajax. But in Weather Display Live shows 88.3 which would be about right.

Anyone have any ideas?

also when checking using:

http://www.tnetweather.com/wd-parser.php?site=http%3A%2F%2Fwww.johnstownpaweather.com/weather/%2F&submit=Submit

shows the below So WD is using the 044 to show with wind where i see or think that ajax is using 045 not sure where that change would be made at.

044 WindChill C 31.5

The code in ajaxWDwx.js for wind-chill, humidex, heat-index are all separate values … only the ‘feels like’ uses wind-chill or humidex based on temperature

		// Humidex
		humidex = convertTemp(clientraw[45]);
		set_ajax_obs("ajaxhumidex",humidex.toFixed(1) + uomTemp);
		humidexmin = convertTemp(clientraw[76]);
		set_ajax_obs("ajaxhumidexmin",humidexmin.toFixed(1) + uomTemp);
		humidexmax = convertTemp(clientraw[75]);
		set_ajax_obs("ajaxhumidexmax",humidexmax.toFixed(1) + uomTemp);

		//  WindChill
		windchill = convertTemp(clientraw[44]);
		set_ajax_obs("ajaxwindchill",windchill.toFixed(1) + uomTemp);
		windchillmin = convertTemp(clientraw[78]);
		set_ajax_obs("ajaxwindchillmin",windchillmin.toFixed(1) + uomTemp);
		windchillmax = convertTemp(clientraw[77]);
		set_ajax_obs("ajaxwindchillmax",windchillmax.toFixed(1) + uomTemp);

		// Heat Index
		heatidx = convertTemp(clientraw[112]);
		set_ajax_obs("ajaxheatidx",heatidx.toFixed(1) + uomTemp);
		heatidxmin = convertTemp(clientraw[111]);
		set_ajax_obs("ajaxheatidxmin",heatidxmin.toFixed(1) + uomTemp);
		heatidxmax = convertTemp(clientraw[110]);
		set_ajax_obs("ajaxheatidxmax",heatidxmax.toFixed(1) + uomTemp);

		// FeelsLike
		temp = clientraw[4]; // note.. temp in C
        if (temp <= 16.0 ) {
		  feelslike = clientraw[44]; //use WindChill
		} else if (temp >=27.0) {
		  feelslike = clientraw[45]; //use Humidex
		} else {
		  feelslike = temp;   // use temperature
		}
		feelslike  = Math.round(convertTemp(feelslike));
        set_ajax_obs("ajaxfeelslike",feelslike + uomTemp);

Don’t know if this helps or not :roll:

Best regards,
Ken

Yea i found it ken had to do some digging tho lol

ajaxheatidx fixed the problem lol.

the feelslike was throwing it off.

Had a similar concern using the CarterLake templates with Ken’s ajax. The humidex values are much higher than heat index.

The %feelslike% tag definition is:
“Shows heat index or humidex or windchill (if less than 16oC)”

Does that mean I can configure somewhere in WD to have the tag use heat index instead of humidex? This is what I would prefer. Or do have have to change the tag to ajaxheatidx?

Guess I could also change Ken’s if/then logic in the script also?? :wink: :?

Bill