Author Topic: "Feels like" too hot?  (Read 1257 times)

0 Members and 1 Guest are viewing this topic.

Offline tedroche

  • Semi-retired, novice weather station operator
  • Member
  • *
  • Posts: 35
  • Weather Observer, CoCoRaHS, Storm Spotter
    • Contoocook Village North
"Feels like" too hot?
« on: June 26, 2024, 03:18:32 PM »
I'm in the process of setting up Saratoga templates at https://contoocook.org and I've got a glitch in the "Feels like" display.

Temps are in the mid-80's in northern New England, but the "feels like" is flirting with 100 Fahrenheit on the ajax-dashboard.

I'm running Ecowitt hardware and a WeeWx backend, and "Feels like" more reasonably shows only a few degrees warmer than actual temp on the gateway GW1100 web display and on the plain vanilla WeeWx site I run at wx.iayft.com. The WeeWx backend uses the gjr80/WeeWX-Saratoga extension 0.1.9 to create the clientraw.txt file, and the rest of the displays seem consistent with what I'm observing locally. All Saratoga template versions are confirmed up to date.

Any suggestions on how to troubleshoot this would be welcomed!
Ecowitt GW1100 HP3501 WH32 WN32 WH31 WN34S WH41 WH40 WS68 RaspPi
Website, CWOP: GW0103, CoCoRaHS: NH-MR-68, WU:KNHHOPKI9




Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9568
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: "Feels like" too hot?
« Reply #1 on: June 26, 2024, 03:58:52 PM »
The default for 'feelslike' is to display humidex when the temp is >27C.

This is in ajaxWEEWXwd.js
Quote
      // 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
      }
      var feelslike  = Math.round(convertTemp(feelslike));
        set_ajax_obs("ajaxfeelslike",feelslike + uomTemp);
You can change to use heat index by changing
Quote
feelslike = clientraw[45]; //use Humidex
to
Quote
feelslike = clientraw[112]; //use heat index
That will change the display when the AJAX script starts running and updates the display with the heat index.

The $feelslike data in WEEWXtags.php produced by WeeWX will continue to upload humidex into that value.
You'll need to ask the WEEWX user group how to change it to use heat index instead.
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 tedroche

  • Semi-retired, novice weather station operator
  • Member
  • *
  • Posts: 35
  • Weather Observer, CoCoRaHS, Storm Spotter
    • Contoocook Village North
Re: "Feels like" too hot?
« Reply #2 on: June 26, 2024, 04:45:24 PM »
Ah! Thanks for the explanation. I made a poor assumption that the same number was being passed through and somehow mangled. I'm glad it's not something I misconfigured.
Ecowitt GW1100 HP3501 WH32 WN32 WH31 WN34S WH41 WH40 WS68 RaspPi
Website, CWOP: GW0103, CoCoRaHS: NH-MR-68, WU:KNHHOPKI9




Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1364
  • BismarckWeather.net
    • BismarckWeather.net
Re: "Feels like" too hot?
« Reply #3 on: June 28, 2024, 12:08:11 PM »
The default for 'feelslike' is to display humidex when the temp is >27C.

The $feelslike data in WEEWXtags.php produced by WeeWX will continue to upload humidex into that value.
You'll need to ask the WEEWX user group how to change it to use heat index instead.
Can WD ajax be similarly changed to show heat index instead of humidex?
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Vasco

  • Forecaster
  • *****
  • Posts: 524
    • PWS
Re: "Feels like" too hot?
« Reply #4 on: June 28, 2024, 12:46:48 PM »
Can WD ajax be similarly changed to show heat index instead of humidex?

Looks like it, around line 712: heat index is WD clientraw[112]
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1364
  • BismarckWeather.net
    • BismarckWeather.net
Re: "Feels like" too hot?
« Reply #5 on: June 28, 2024, 01:24:21 PM »
I've updated my ajaxWDwx.js from 45 to 112. It didn't break.  :-)
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Vasco

  • Forecaster
  • *****
  • Posts: 524
    • PWS
Re: "Feels like" too hot?
« Reply #6 on: June 28, 2024, 01:42:14 PM »
I've updated my ajaxWDwx.js from 45 to 112. It didn't break.  :)

I had already changed the next line from feelslike=temp to clientraw[130]. I didn't see why FeelsLike should show the actual temp between 16° and 27°C, so it now shows WD Apparent.

And, as I believe WindChill is only valid below 10°C, I changed the <= 16 too. . .

EDIT: In WD you can uncheck "Calculate windchill above 10°C" with the rider "(except for clientraw data)". I think this means that you don't get windchill shown in the main screen "Current Conditions" - but you do get windchill in clientraw, and you certainly still get it shown on the main screen graphs  :?
« Last Edit: July 01, 2024, 01:31:35 PM by Vasco »
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline tigerbait

  • Senior Member
  • **
  • Posts: 55
    • Ellerbe Weather
Re: "Feels like" too hot?
« Reply #7 on: June 30, 2024, 05:21:01 PM »
I've tweaked my ajaxWD.  Do you have to change anything in WD itself?
Thanks
Alan
https://www.sporttiger.com
Davis VP2 Weather Display
Saratoga scripts

Offline Vasco

  • Forecaster
  • *****
  • Posts: 524
    • PWS
Re: "Feels like" too hot?
« Reply #8 on: June 30, 2024, 05:25:59 PM »
Do you have to change anything in WD itself?


No, clientraw has all these different values anyway.

Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline tigerbait

  • Senior Member
  • **
  • Posts: 55
    • Ellerbe Weather
Re: "Feels like" too hot?
« Reply #9 on: June 30, 2024, 06:13:09 PM »
Thanks you.  These adjustments cooled my heat index down to about where it should be.
https://www.sporttiger.com
Davis VP2 Weather Display
Saratoga scripts

Offline Vasco

  • Forecaster
  • *****
  • Posts: 524
    • PWS
Re: "Feels like" too hot?
« Reply #10 on: June 30, 2024, 07:20:31 PM »
Do you have to change anything in WD itself?

No, clientraw has all these different values anyway.

Just noticed what Ken said about $feelslike in WEEWXtags, so presumably the same happens in testtags?
Code: [Select]
$feelslike =  '11.9'; // Shows heat index or humidex or windchill (if less than 16oC)

But I don't understand why it matters. . .  :?
« Last Edit: June 30, 2024, 07:43:16 PM by Vasco »
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9568
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: "Feels like" too hot?
« Reply #11 on: June 30, 2024, 07:47:59 PM »
It only matters for what the page shows when first loaded (data rendered by PHP tags file).  If NO JavaScript is enabled in the browser for that site, then that is what the browser sees.
When the AJAX script starts execution, the feelslike value will change to the heat-index value from the humidex value.

Weather-Display has historically used humidex for feelslike.  The weewx plugin replicates that.

In WD, Control Panel, Units, Temperature TAB, you can UNtick "Show humidex instead of heat index or windchill"

The WeeWX change would involve changing the weewxWD python code for the WEEWXtags skin.
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 Vasco

  • Forecaster
  • *****
  • Posts: 524
    • PWS
Re: "Feels like" too hot?
« Reply #12 on: June 30, 2024, 07:52:04 PM »
It only matters for what the page shows when first loaded (data rendered by PHP tags file).

Phew! Thanks, Ken  :)
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline gjr80

  • Member
  • *
  • Posts: 46
Re: "Feels like" too hot?
« Reply #13 on: July 01, 2024, 06:51:31 PM »
It only matters for what the page shows when first loaded (data rendered by PHP tags file).  If NO JavaScript is enabled in the browser for that site, then that is what the browser sees.
When the AJAX script starts execution, the feelslike value will change to the heat-index value from the humidex value.

Weather-Display has historically used humidex for feelslike.  The weewx plugin replicates that.

In WD, Control Panel, Units, Temperature TAB, you can UNtick "Show humidex instead of heat index or windchill"

The WeeWX change would involve changing the weewxWD python code for the WEEWXtags skin.

For those that wish to change the WeeWX behaviour I've released v0.1.10 of the WeeWX plugin that now includes the ability for the user to specify a simple source observation to be used for the feelslike tag in WEEWXtags.php. You can now edit skins/WEEWXtags/skin.conf and under the banner add an [Extras] stanza with a feelslike option as follows:
Code: [Select]
[Extras]
    feelslike = heatindex | windchill | humid | apparent
Setting feelslike to one of the listed options will use the current value of that observation to set the feelslike tag in WEEWXtags.php. If the option is not set or is omitted, the existing testtags multi-source based formula for feelslike will be used. You can also define an [Extras] stanza and feelslike option under [StdReport] [[WEEWXtagsReport]] in weewx.conf as follows (note the additional brackets):
Code: [Select]
[StdReport]
    ....
    [[WEEWXtagsReport]]
        [[[Units]]]
            feelslike = heatindex | windchill | humid | apparent
    ....
This change will require a WeeWX restart for it to take effect, changing skin.conf does not require a restart. Note also that placing such settings in weewx.conf is the preferred approach as such changes survive extension upgrades; changes to skin.conf will not survive an extension upgrade.

This addition changes the feelslike tag in WEEWXtags.php only, it makes no changes to any of the clientraw files, Saratoga template files (including javascript).

v0.1.10 of the WeeWX plugin can be found on GitHub here.

Gary

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9568
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: "Feels like" too hot?
« Reply #14 on: July 01, 2024, 09:35:56 PM »
Thanks, Gary!  That's a nice addition.
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