WXforum.net
Web Weather => Weather Website PHP/AJAX scripting => Topic started by: Jumpin Joe 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
-
Must be something with your alternate dashboard. Mine is showing "extreme cold".
-
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?
-
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.
-
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!