Skip to content

Commit

Permalink
Fix temperature color bug
Browse files Browse the repository at this point in the history
Fixes color generation bug when temperature is set to Celsius.
  • Loading branch information
uajqq authored Jan 10, 2025
1 parent d7c6f7a commit 9d5b092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skins/Belchertown/js/belchertown.js.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function get_outTemp_color(unit, outTemp, returnColor = false) {
var outTemp_color = "rgba(218,113,113,1)";
}
} else if (unit == "degree_C") {
if (outTemp <= 0) {
if (outTemp <= -17.8) {
var outTemp_color = "#1278c8";
} else if (outTemp <= -3.8) {
var outTemp_color = "#30bfef";
Expand Down

0 comments on commit 9d5b092

Please sign in to comment.