Skip to content

Commit 73e942d

Browse files
committed
Added point down arrow when actual temperature is above target temperature
1 parent 7f75456 commit 73e942d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

octoprint_navbartemp/static/js/navbartemp.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ function formatBarTemperature(toolName, actual, target) {
3838
var output = toolName + ": " + _.sprintf("%.1f°C", actual);
3939

4040
if (target) {
41-
output += " \u21D7 " + _.sprintf("%.1f°C", target);
41+
var sign = (target >= actual) ? " \u21D7 " : " \u21D8 ";
42+
output += sign + _.sprintf("%.1f°C", target);
4243
}
4344

4445
return output;

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
plugin_identifier = "navbartemp"
77
plugin_package = "octoprint_%s" % plugin_identifier
88
plugin_name = "OctoPrint-NavbarTemp"
9-
plugin_version = "0.7"
9+
plugin_version = "0.8"
1010
plugin_description = "Displays temperatures on navbar"
1111
plugin_author = "Jarek Szczepanski"
1212
plugin_author_email = "imrahil@imrahil.com"

0 commit comments

Comments
 (0)