vitormhenrique / OctoPrint-Enclosure

OctoPrint Enclosure Plugin
GNU General Public License v3.0
396 stars 201 forks source link

GCode Light/Fan Controls #430

Open chasehobbs opened 2 years ago

chasehobbs commented 2 years ago

Is your feature request related to a problem? Please describe. I have a SnapMaker 2.0 A350 with their enclosure. The enclosure has built in lights and an exhaust fan controlled by custom GCode sent to the printer. This plugin has the ability to send static GCode commands but not anyway to send dynamic ones with a variable such as brightness or speed.

Describe the solution you'd like I would like to provide a GCode command with a variable that I could provide something like a percentage to. That way I could control them traditionally like a light/fan instead of adding fixed GCode commands for specific brightnesses/speeds.

Describe alternatives you've considered I have found no other plugins that provide this functionality. I currently have pre/post print GCode commands to statically turn the light and fan on or off.

Additional context Example GCodes I use to control the enclosure light/fan: Turn both off: M1010 S3 P0 M1010 S4 P0 Turn both on 100%: M1010 S3 P100 M1010 S4 P100 Light on 25%: M1010 S3 P25 Fan on 50%: M1010 S4 P5

MIIB1 commented 2 years ago

any update ?