Giter Site home page Giter Site logo

andyq / octoprint-prusameshmap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prusaowners/octoprint-prusameshmap

19.0 6.0 5.0 933 KB

This plugin performs a mesh bed leveling operation then returns the results as an easy to read heatmap.

License: MIT License

Python 85.17% CSS 0.26% JavaScript 6.40% Less 0.29% Jinja 7.89%

octoprint-prusameshmap's Introduction

OctoPrint-PrusaMeshMap

This plugin is undergoing beta testing!

Description

This plugin takes Prusa's G81 mesh level output and translates it into an easy to read heatmap using matplotlib.

Upon installation, you will have a "Prusa Mesh Leveling" tab:

example showing new tab in interface

Clicking "Perform Bed Level and Check" will execute a bed level operation and status check using a GCode script defined in the settings:

example showing GCode script in settings

It should be noted that the heatmap image will not reload automatically. To reload, click "Reload Heatmap Image" below the heatmap. This is to allow you to be paying attention and see how your new bed level result changes.

G81 Output Handler

It should be noted that this plugin has a handler that is watching output received from the printer at all times. This means you can place a G81 in your slicer's GCode start script and have a new heatmap generated every time you print!

Setup

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

https://github.com/PrusaOwners/OctoPrint-PrusaMeshMap/archive/master.zip

My modified version can be installed using this URL:

https://github.com/AndyQ/OctoPrint-PrusaMeshMap/archive/master.zip

NOTE - only Python 3 is now supported - so you will need to have upgraded to the latest OctoPrint

Raspberry Pi Users

This plugin uses matplotlib and numpy packages from pip. Since wheels do not exist for these ARM packages in Python 3, they will need to compile. This process takes a long time (30min+). If you try to install this directly from Plugin Manager without installing these dependencies first, the compile process will take long enough that OctoPrint errors out the plugin install and quits responding while the install process continues in the background! You can monitor the process with top command via SSH, and when it finishes attempt the plugin install again per the above. It will detect that the plugin is already installed and force a reinstall, and since the dependencies will be there it will go on without issues.

A better method may be to log in to the Pi via SSH before doing the plugin install and pip install the requirements manually.

IMPORTANT! As of this writing, the current versions of matplotlib and numpy require Python3. This plugin has been updated toi support Python 34 ONLY, and it shoudl work with the latest versions of matplotlib and numpy. So to install these manually you can use the following commands:

/home/pi/oprint/bin/pip --no-cache-dir install 'numpy'
/home/pi/oprint/bin/pip --no-cache-dir install 'matplotlib'

(The --no-cache-dir is required for Pi Zero W users, may work fine without this on other Pi versions)

This will still take a long time, but will get the packages the plugin depends on in place beforehand. The plugin will then install without issues within a few seconds in Plugin Manager.

octoprint-prusameshmap's People

Contributors

andyq avatar gdombiak avatar koenkooi avatar matthew-humphrey avatar thebrigandier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

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.