You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While inspecting the code in js/belchertown.js.tmpl, this error was recognized:
The function get_outTemp_color in js/belchertown.js.tmpl is incorrect regarding outTemp when (unit == "degree_C) and low temperatures.
The first test (in line 194) is (outTemp <= 0) but should read (outTemp <= -17.8) to match Farenheit processing (in line 162)
This error was introduced in some of the initial commits.
#Line 193:
} else if (unit == "degree_C") {
if (outTemp <= 0) {
var outTemp_color = "#1278c8";
} else if (outTemp <= -3.8) {
var outTemp_color = "#30bfef";
} else if (outTemp <= 0) {
var outTemp_color = "#1fafdd";
#Line 161:
if (unit == "degree_F") {
if (outTemp <= 0) {
var outTemp_color = "#1278c8";
} else if (outTemp <= 25) {
var outTemp_color = "#30bfef";
} else if (outTemp <= 32) {
var outTemp_color = "#1fafdd";
The text was updated successfully, but these errors were encountered:
PBudmark
changed the title
In js\belchertown.js.tmpl function get_outTemp_color returns incorrect color when outTemp <= 0 and unit is "degree_C"
In js/belchertown.js.tmpl function get_outTemp_color returns incorrect color when outTemp <= 0 and unit is "degree_C"
Mar 10, 2024
While inspecting the code in js/belchertown.js.tmpl, this error was recognized:
The function get_outTemp_color in js/belchertown.js.tmpl is incorrect regarding outTemp when (unit == "degree_C) and low temperatures.
The first test (in line 194) is (outTemp <= 0) but should read (outTemp <= -17.8) to match Farenheit processing (in line 162)
This error was introduced in some of the initial commits.
The text was updated successfully, but these errors were encountered: