Author Topic: Undefined Temperature Description  (Read 376 times)

0 Members and 1 Guest are viewing this topic.

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Undefined Temperature Description
« on: December 23, 2022, 07:21:39 AM »
Our current temperature is -8 , wind chill -26. Description “undefined” I’ve never seen this before.
Is there a description for these temperatures?

Joe
www.joesweather.info
« Last Edit: December 23, 2022, 08:04:52 AM by Jumpin Joe »
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
Re: Undefined Temperature Description
« Reply #1 on: December 23, 2022, 11:23:54 AM »
Must be something with your alternate dashboard.  Mine is showing "extreme cold".
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Vasco

  • Forecaster
  • *****
  • Posts: 342
    • PWS
Re: Undefined Temperature Description
« Reply #2 on: December 23, 2022, 12:44:21 PM »
Is there a description for these temperatures?

When using WD in the standard template they are in ajaxWDwx.js: descriptions of langHeatWords around line 127 and temp limits for each around line 530. Don't know if you have something similar?
« Last Edit: December 23, 2022, 12:46:26 PM by Vasco »
Ecowitt GW1102 (with GW2000) + Weather Display in Windows 10

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 951
    • LexMAWeather
Re: Undefined Temperature Description
« Reply #3 on: December 23, 2022, 03:04:21 PM »
Your language-en.js is overwriting langHeatWords as defined in ajaxWDwx3.js, shortening the array. So the index 14 which applies to the lowest windchill setting (see function ajax_getHeatColor() in the latter file) is out of bounds; hence the undefined display.

Changing language-en.js to match the array definition in ajaxWDwx3.js should fix it. You'll need to reload javascript (usually SHIFT-refresh in the browser) to load the new code.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: Undefined Temperature Description
« Reply #4 on: December 23, 2022, 04:02:33 PM »
Your language-en.js is overwriting langHeatWords as defined in ajaxWDwx3.js, shortening the array. So the index 14 which applies to the lowest windchill setting (see function ajax_getHeatColor() in the latter file) is out of bounds; hence the undefined display.

Changing language-en.js to match the array definition in ajaxWDwx3.js should fix it. You'll need to reload javascript (usually SHIFT-refresh in the browser) to load the new code.

Made the change, life in the weather world is great once again.

Thank you!
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

 

anything