diff --git a/server/images/r/cold.gif b/server/images/r/cold.gif new file mode 100644 index 0000000..4fb6c7f Binary files /dev/null and b/server/images/r/cold.gif differ diff --git a/server/scripts/modules/icons.js b/server/scripts/modules/icons.js index 2b80349..f9496e9 100644 --- a/server/scripts/modules/icons.js +++ b/server/scripts/modules/icons.js @@ -29,6 +29,7 @@ const icons = (() => { case 'skc-n': case 'nskc': case 'nskc-n': + case 'cold-n': return addPath('Clear-1992.gif'); case 'bkn': @@ -135,6 +136,9 @@ const icons = (() => { case 'blizzard': return addPath('Blowing Snow.gif'); + case 'cold': + return addPath('cold.gif'); + default: console.log(`Unable to locate regional icon for ${conditionName} ${link} ${isNightTime}`); return false; @@ -142,7 +146,7 @@ const icons = (() => { }; const getWeatherIconFromIconLink = (link, _isNightTime) => { - if (!link) return; + if (!link) return false; // internal function to add path to returned icon const addPath = (icon) => `images/${icon}`; @@ -166,11 +170,13 @@ const icons = (() => { case 'skc': case 'hot': case 'haze': + case 'cold': return addPath('CC_Clear1.gif'); case 'skc-n': case 'nskc': case 'nskc-n': + case 'cold-n': return addPath('CC_Clear0.gif'); case 'sct':