Add temperature fans to heaters (#325)

* Add temperature fans to heaters

* Make code prettier

* Indentation
This commit is contained in:
Julian Schill
2021-11-17 03:03:14 +01:00
committed by GitHub
parent 29e9bad1aa
commit 51d26a3a29
4 changed files with 24 additions and 1 deletions

View File

@@ -337,6 +337,17 @@ class MoonrakerApi:
*args
)
def set_temp_fan_temp(self, temp_fan, target, callback=None, *args):
logging.debug("Sending temperature fan %s to temp: %s", temp_fan, target)
return self._ws.send_method(
"printer.gcode.script",
{
"script": KlippyGcodes.set_temp_fan_temp(temp_fan, target)
},
callback,
*args
)
def set_tool_temp(self, tool, target, callback=None, *args):
logging.debug("Sending set_tool_temp: %s", KlippyGcodes.set_ext_temp(target, tool))
return self._ws.send_method(