Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
112852d619 | |||
0462a7552e |
@ -38,8 +38,8 @@ $(function() {
|
|||||||
//add new fan controls
|
//add new fan controls
|
||||||
$("#control > div.jog-panel.general").find("button").eq(0).before("\
|
$("#control > div.jog-panel.general").find("button").eq(0).before("\
|
||||||
<input type=\"number\" style=\"width: 90px\" data-bind=\"slider: {min: 00, max: 100, step: 1, value: fanSpeed, tooltip: 'hide'}\">\
|
<input type=\"number\" style=\"width: 90px\" data-bind=\"slider: {min: 00, max: 100, step: 1, value: fanSpeed, tooltip: 'hide'}\">\
|
||||||
<button class=\"btn btn-block control-box\" data-bind=\"enable: isOperational() && !isPrinting() && loginState.isUser(), click: function() { sendFanSpeed() }\">" + gettext("Fan on") + ":<span data-bind=\"text: fanSpeed() + '%'\"></span></button>\
|
<button class=\"btn btn-block control-box\" data-bind=\"enable: isOperational() && loginState.isUser(), click: function() { sendFanSpeed() }\">" + gettext("Fan on") + ":<span data-bind=\"text: fanSpeed() + '%'\"></span></button>\
|
||||||
<button class=\"btn btn-block control-box\" data-bind=\"enable: isOperational() && !isPrinting() && loginState.isUser(), click: function() { $root.sendCustomCommand({ type: 'command', commands: ['M106 S0'] }) }\">" + gettext("Fan off") + "</button>\
|
<button class=\"btn btn-block control-box\" data-bind=\"enable: isOperational() && loginState.isUser(), click: function() { $root.sendCustomCommand({ type: 'command', commands: ['M106 S0'] }) }\">" + gettext("Fan off") + "</button>\
|
||||||
");
|
");
|
||||||
} else { //if TouchUI is active we only add the speed input + fan on button in a new section.
|
} else { //if TouchUI is active we only add the speed input + fan on button in a new section.
|
||||||
console.log("Fan Speed Slider: NOTICE! TouchUI is active, adding simplified control.");
|
console.log("Fan Speed Slider: NOTICE! TouchUI is active, adding simplified control.");
|
||||||
|
2
setup.py
2
setup.py
@ -14,7 +14,7 @@ plugin_package = "octoprint_fanspeedslider"
|
|||||||
plugin_name = "OctoPrint-FanSpeedSlider"
|
plugin_name = "OctoPrint-FanSpeedSlider"
|
||||||
|
|
||||||
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
|
||||||
plugin_version = "0.1.3"
|
plugin_version = "0.1.3b"
|
||||||
|
|
||||||
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
|
||||||
# module
|
# module
|
||||||
|
Reference in New Issue
Block a user