Author Topic: Heat Index  (Read 1209 times)

0 Members and 1 Guest are viewing this topic.

Offline ed_heaton

  • Contributor
  • ***
  • Posts: 147
    • Atglen Borough Weather Observatory
Heat Index
« on: July 13, 2021, 06:51:11 PM »
Quick question... why is the heat index different on the home page vs the weather widget?  The weather widget value is in line with Weather Underground...
« Last Edit: July 13, 2021, 06:53:51 PM by ed_heaton »

Offline AWL

  • Forecaster
  • *****
  • Posts: 727
    • Ardmore Weather Live
Re: Heat Index
« Reply #1 on: July 14, 2021, 12:23:05 PM »
Looking at your site yesterday looks like two different values are being used. Heat index for the widget and WU while maybe the humidity index is being used on your front page for the "feels like".


Doug

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Heat Index
« Reply #2 on: July 14, 2021, 01:21:30 PM »
Correct.. the default for 'feels like' on the dashboard is based on Humidex, not Heat Index.
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 ed_heaton

  • Contributor
  • ***
  • Posts: 147
    • Atglen Borough Weather Observatory
Re: Heat Index
« Reply #3 on: July 14, 2021, 05:11:08 PM »
Thanks guys!

Offline floodcaster

  • Forecaster
  • *****
  • Posts: 635
    • Goose Lake Weather
Re: Heat Index
« Reply #4 on: July 15, 2021, 08:59:32 AM »
I'm not a fan of humidex so I modified the code to use heat index for "feels like" instead.
Bill


Offline ed_heaton

  • Contributor
  • ***
  • Posts: 147
    • Atglen Borough Weather Observatory
Re: Heat Index
« Reply #5 on: July 15, 2021, 01:45:23 PM »
Bill how did you do that if you don't mind me asking...

Offline floodcaster

  • Forecaster
  • *****
  • Posts: 635
    • Goose Lake Weather
Re: Heat Index
« Reply #6 on: July 15, 2021, 02:48:31 PM »
Bill how did you do that if you don't mind me asking...

Ed,
I'm not an experienced programmer/coder by any stretch of the imagination and know just enough to be dangerous. So if there are any glaring missteps hopefully someone will let me know, but it appears to be working. Here's what I did to modify my AjaxWDwx.js file (I use Weather Display). Obviously you'll want to make a copy of your working file before attempting any mods in case something doesn't go as planned.
Code: [Select]
// FeelsLike  modified  7/4/21 to use HI vs Humidex
temp = clientraw[4]; // note.. temp in C
        if (temp <= 16.0 ) {
  feelslike = clientraw[44]; //use WindChill
} else if (temp >=27.0) {
  feelslike = clientraw[112]; //use Heat Index
} else {
  feelslike = temp;   // use temperature
Bill


Offline ed_heaton

  • Contributor
  • ***
  • Posts: 147
    • Atglen Borough Weather Observatory
Re: Heat Index
« Reply #7 on: July 15, 2021, 03:05:58 PM »
thanks Bill and I'm not a programmer.  My problem is I don't even know enough to get into trouble... lol

Offline ed_heaton

  • Contributor
  • ***
  • Posts: 147
    • Atglen Borough Weather Observatory
Re: Heat Index
« Reply #8 on: July 17, 2021, 07:09:48 AM »
Lucky me... with the Meteobridge there's an option to switch between humidex and heat index in AjaxMBwx.js file.   Thanks for the help.