An OctoPrint plugin to allow G29 commands (auto-leveling) to be commented out.
Although this plugin was created specifically for the Robo C2/R2 printers, it will work as well with other brands/models.
If you're not running roboOctoPrint (roboOS), then you'll want to substitute below during the installation instructions. Instead of changing to the cd ~/oprint/lib/python2.7/site-packages/octoprint/plugins
folder, use the usual ~/.octoprint/plugins
folder.
Many people are happy with an autoleveling routine at the startup of each print job. There are times, though, where you'd instead like to manually level the printer and stop doing autoleveling all the time since it can cause more troubles.
Once you've made that commitment, however, you then might need to go back, edit your slicer's startup GCODE and re-slice all of your STL files to remove that G29 autoleveling command from those GCODE files. But that's a hassle. Which files have it and which files don't?
This plugin should alleviate that by making OctoPrint just comment out the G29 command when it sees it (simple enough). And it's also easy to toggle autoleveling back on by using Settings -> Plugin Manager -> Toggle Autolevel -> Disable then restart OctoPrint.
The installation should be straightforward enough since it's a single Python script:
- Turn on the printer
- In a terminal prompt on your workstation, remote into your printer by using
ssh
orputty
as either version below (use your own printer's serial number as the hostname):- $
ssh pi@charming-pascal.local
# pw = raspberry - $
ssh pi@printer-ip-address
- $
- $
cd ~/oprint/lib/python2.7/site-packages/octoprint/plugins
# If not on the Robo C2/R2, see caveat above - $
curl -o ToggleAutolevel.py https://raw.githubusercontent.com/OutsourcedGuru/OctoPrint-plugin-toggle-autolevel/master/ToggleAutolevel.py
- $
exit
- In your workstation's browser, visit the OctoPrint interface, for example:
http://charming-pascal.local
- System -> Restart OctoPrint
- Settings -> Plugin Manager and verify that Toggle Autolevel is now listed
- Save
- In the Printer Terminal section, click its header to open it up and enter a
G29
code, looking for a commented-out;G29
to be sent to the printer - You'd confirmed that the plugin is now installed and enabled
Removing the plugin is also easy. Under Settings -> Plugin Manager -> Toggle Autolevel, click the Disable icon and allow OctoPrint to restart. Remote into your Robo printer as you did before with ssh
and enter the following command to remove the Python script: $ rm ~/oprint/lib/python2.7/site-packages/octoprint/plugins/ToggleAutolevel.py
. Finally, restart OctoPrint again and verify that it's now missing from the list of plugins.
For those not on a Robo printer, run the following command instead to delete the Python script: $ rm ~/.octoprint/plugins/ToggleAutolevel.py
.
Donate | Cryptocurrency | |
---|---|---|
![]() |
![]() |
|
Ethereum | Bitcoin |