Coder Social home page Coder Social logo

outsourcedguru / octoprint-plugin-toggle-autolevel Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 14 KB

An OctoPrint plugin to allow G29 commands (auto-leveling) to be commented out.

License: GNU General Public License v3.0

Python 100.00%
octoprint octoprint-plugin robo-c2-printer robo-r2-printer autoleveling gcode

octoprint-plugin-toggle-autolevel's Introduction

OctoPrint-plugin-toggle-autolevel

An OctoPrint plugin to allow G29 commands (auto-leveling) to be commented out.

Suitability

Although this plugin was created specifically for the Robo C2/R2 printers, it will work as well with other brands/models.

Caveat

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.

Overview

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.

Problem

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?

Solution

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.

Installation

The installation should be straightforward enough since it's a single Python script:

  1. Turn on the printer
  2. In a terminal prompt on your workstation, remote into your printer by using ssh or putty as either version below (use your own printer's serial number as the hostname):
  3. cd ~/oprint/lib/python2.7/site-packages/octoprint/plugins # If not on the Robo C2/R2, see caveat above
  4. curl -o ToggleAutolevel.py https://raw.githubusercontent.com/OutsourcedGuru/OctoPrint-plugin-toggle-autolevel/master/ToggleAutolevel.py
  5. $ exit
  6. In your workstation's browser, visit the OctoPrint interface, for example: http://charming-pascal.local
  7. System -> Restart OctoPrint
  8. Settings -> Plugin Manager and verify that Toggle Autolevel is now listed
  9. Save
  10. 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
  11. You'd confirmed that the plugin is now installed and enabled

toggleautolevel-in-action

Removing the plugin

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.

Non-Robo version

For those not on a Robo printer, run the following command instead to delete the Python script: $ rm ~/.octoprint/plugins/ToggleAutolevel.py.

Donate Cryptocurrency
eth-receive btc-receive
Ethereum Bitcoin

octoprint-plugin-toggle-autolevel's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hypertoken

octoprint-plugin-toggle-autolevel's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.