CmdrCody51 / OctoPrint-MarlinSlider

Slider controls for the speed of the Fans, Feedrate amd Flowrate in Marlin 2+.
3 stars 0 forks source link

OctoPrint-MarlinSlider

Add sliders to control the speed of a parts cooling fan, feedrate and flowrate for printers with Marlin firmware. With version 2 or other firmwares that can report the values, the plugin will report values sent by OctoPrint.

Usage

Slide the sliders, click the buttons. The Up and Down buttons select the range for the feedrate and flowrate. The arrows will automatically be disabled if changing the range is not possible, i.e. trying to move the range more than by 100%. (You must be able to display the 'current display value' inside the next range. You don't have to send it until you get to the value desired.)

Verify

You can make sure the plugin is usable on your printer with a couple of tests. Several printers are using crippled forks of Marlinfw. Go to the Terminal and send "M220". You should recieve "FR: 100%" Send "M221" and you should get "echo:E# Flow: 100%" back. The number after the 'E' will be your active extruder. Also, from an "M503" you should recieve some "M145 S# H###.## B##.## F###" lines for the material presets. The 'F' numbers are Fan PWM counts (0 to 255) for the fans during Preheat.

Limitations

Currently M710 Controller Fans and M123 - Fan Tachometers are not processed at all. The Fan slider displays and controls the current tool/hotend parts cooling fan only. I don't have every possible 3d printer in the world ("'tis a consummation devoutly to be wish'd.") so I can not test all operations. Just fill out a Feature request with relevant logs (especially serial logs) and I'll see what we can do.

Tips and Tricks

Under 'OctoPrint Settings (the wrench)' - 'Printer' - 'GCODE Scripts' - 'After serial connection to printer is established' you can add/modify it with

This way you don't have to click the Check buttons after you connect.

Setup

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/CmdrCody51/OctoPrint-MarlinSlider/archive/master.zip

ABOUT

This is a fork from the first OctoPrint Fan Speed Slider by NTOFF since the main project is abandoned. Then BERTUGARANGOU's fork that made it compatible with Python 3. And then JNEILLIII who added the logic to set fan speed based on sent/received gcode.
I only filled out the two other sliders after Marlin added the responses.

Ko-Fi or GitHub Use GitHub!

You can also send funds via PayPal to cmdrcody@pharowt.com