Skip to content

Commit

Permalink
Added point down arrow when actual temperature is above target temper…
Browse files Browse the repository at this point in the history
…ature
  • Loading branch information
imrahil committed Mar 25, 2016
1 parent 7f75456 commit 73e942d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion octoprint_navbartemp/static/js/navbartemp.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ function formatBarTemperature(toolName, actual, target) {
var output = toolName + ": " + _.sprintf("%.1f°C", actual);

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

return output;
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
plugin_identifier = "navbartemp"
plugin_package = "octoprint_%s" % plugin_identifier
plugin_name = "OctoPrint-NavbarTemp"
plugin_version = "0.7"
plugin_version = "0.8"
plugin_description = "Displays temperatures on navbar"
plugin_author = "Jarek Szczepanski"
plugin_author_email = "imrahil@imrahil.com"
Expand Down

0 comments on commit 73e942d

Please sign in to comment.