Author Topic: Heat Index stopped working  (Read 331 times)

0 Members and 1 Guest are viewing this topic.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6377
    • Valentine Nebraska's Real-Time Weather
Heat Index stopped working
« on: August 24, 2021, 10:58:01 AM »
My heat index front on the ajax dashboard turns to the apparent temperature at 80f. It loads the heat index when first opening and then goes to apparent.  Can't figure it out Settings Weather I have set at (0) to use heat index. I have the latest AjaxCuwx.js set at (0) to use the heat index and even uploaded the latest CU-def.php in case something was there.  Any ideas are appreciated.
Yesterday was when I first noticed and occasional the Heat Index would start working if I uploaded a new Settings-weather.php.
I went into my server-side and deleted files and uploaded new ones also just in case they weren't getting overwritten correctly.  I do have 2 different versions of Cumulus running one is at a remote site uploading to WU only, but to make sure the other Cumulus wasn't uploading files I have everything off including the password for the server marked out. I really am at a loss what's going on.
Randy

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Heat Index stopped working
« Reply #1 on: August 24, 2021, 12:33:44 PM »
To use HeadIndex (or Humidex or ApparentTemp), the temperature must be >= 27C/80.6F.

Your CUtags.php?sce=dump shows:
Code: [Select]
$WX['temp'] = '85.6';
$WX['intemp'] = '72.7';
$WX['temptrend'] = '+4.5';
$WX['temptrendtext'] = 'Rising';
$WX['temptrendenglish'] = 'Rising';
$WX['heatindex'] = '85.0';
$WX['humidex'] = '92.3';
$WX['hum'] = '40';
$WX['inhum'] = '44';
$WX['dew'] = '58.5';
$WX['wchill'] = '85.6';
so the heatIndex of 85.0F is shown (as less than the actual temperature of 85.6F).

The same code structure is used in ajaxCUwx.js and the values in realtime.txt are used. 
Code: [Select]
      // FeelsLike
        temp = cTempToC(realtime[2]); // note.. temp in C
var HC = 0;
var HCraw = 0;
switch (useFeelslike) {
  case 0:
  HCraw = realtime[41]; //use HeatIndex
  break;
  case 1:
  HCraw = realtime[42]; //use Humidex
  break;
  case 2:
  HCraw = realtime[54]; //use Apparent Temperature
  break;
  default:
  HCraw = realtime[41]; //use HeatIndex (default)
  break;
  }
var HC = cTempToC(HCraw);
        if (temp <= 16.0 ) {
  feelslike = cTempToC(realtime[24]); //use WindChill
} else if (temp >=27.0) {
  feelslike = HC; //use HeatIndex/Humidex/ApparentTemp
} else {
  feelslike = temp;   // use temperature
}
var feelslike  = Math.round(convertTempC(feelslike));
        set_ajax_obs("ajaxfeelslike",feelslike + uomTemp);

realtime.txt shows
Code: [Select]
0 24/08/21
1 0.476458333
2 87.6
3 32
4 54.1
5 11
6 5
7 336
8 0
9 0.08
10 29.865
11 NNW
12 3
13 mph
14 F
15 in
16 in
17 93.3
18 0.012
19 1.33
20 16.58
21 0
22 72.7
23 44
24 87.6
25 4.9
26 87.7
27 0.475
28 68.2
29 0.269444444
30 27
31 0.084722222
32 48
33 0.065277778
34 29.87
35 0.420833333
36 29.775
37 0.235416667
38 1.9.4
39 1099
40 18
41 85.7
42 91.9
43 16
44 0
45 0
46 310
47 0
48 2
49 1
50 0
51 NW
52 7614
53 ft
54 82.6
55 0
56 739
57 0

So it seems to be working as expected based on the data from your station and Cumulus.
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 ValentineWeather

  • Forecaster
  • *****
  • Posts: 6377
    • Valentine Nebraska's Real-Time Weather
Re: Heat Index stopped working
« Reply #2 on: August 24, 2021, 01:27:34 PM »
Thanks for looking into it Ken. I'm at 91f now and it's still doing apparent temperature and not what I'm asking for Heat Index also what's new is "feels like" occasional says unknown now. The reason I know it keeps putting out apparent this is what Cumulus dashboard says. I changed the Ajax dashboard out to the latest this morning just grabbing for straws.

« Last Edit: August 24, 2021, 01:34:48 PM by ValentineWeather »
Randy

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6377
    • Valentine Nebraska's Real-Time Weather
Re: Heat Index stopped working
« Reply #3 on: August 24, 2021, 01:48:12 PM »
Well now it starting working... #-o Did this yesterday too. Maybe it has to make almost 92 now. Hope not our dew point was close to 70 yesterday and the heat index was 98 and it wasn't working.
Randy