z4gunn / OctoPrint-GpioFanController

8 stars 2 forks source link

Support M106 and M107 #1

Closed crysxd closed 3 years ago

crysxd commented 3 years ago

It would be amazing if you can add support for M106 M107 so the controlled fan can be used as a part cooling fan. Use case: My mainboard is broken and always send full speed to the part cooling fan.

There is a callback function a plugin can use to execute code whenever a specific Gcode is sent :) FanSpeedMirror is already doing something very similar: https://github.com/b-morgan/OctoPrint-FanSpeedMirror/blob/master/octoprint_FanSpeedMirror/__init__.py

Thank you very much for considering this feature!

z4gunn commented 3 years ago

It would be amazing if you can add support for M106 M107 so the controlled fan can be used as a part cooling fan. Use case: My mainboard is broken and always send full speed to the part cooling fan.

There is a callback function a plugin can use to execute code whenever a specific Gcode is sent :) FanSpeedMirror is already doing something very similar: https://github.com/b-morgan/OctoPrint-FanSpeedMirror/blob/master/octoprint_FanSpeedMirror/__init__.py

Thank you very much for considering this feature!

Thanks for the feedback and agree that would be very useful. I am planning on adding GCODE command hooks as the next feature.

OldCurmudgeon3DP commented 3 years ago

In my case (pun), my board fan, even being a noctua, is audible from several feet and runs all the time. I've been toying with the idea of remixing the case to use my OEM 4010 (sitting in a bin) or a 5015. This plugin would benefit that mod if it allowed gcode or event-based control of the fan. There may be other options for me since I'm running Klipper firmware, but thought I'd chime in w/ an idea in case it was useful to others.

z4gunn commented 3 years ago

M106 and M107 GCODE command hooks have been added to v0.2.0

crysxd commented 3 years ago

Amazing! Will give it a shot and report back