diff --git a/README.md b/README.md index 9a94cd4..73df5b6 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,11 @@ or manually using this URL: ## Changelog +**[0.1.10]** (08/22/209) + +**Added** +- Option for ignoring Bed Level Correction Matrix. + **[0.1.9]** (06/15/2019) **Fixed** @@ -214,6 +219,7 @@ or manually using this URL: **Initial Release** +[0.1.10]: https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/tree/0.1.10 [0.1.9]: https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/tree/0.1.9 [0.1.8]: https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/tree/0.1.8 [0.1.7]: https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/tree/0.1.7 @@ -237,7 +243,7 @@ or manually using this URL: ## To-Do - [ ] Pause standard OctoPrint temperature polling or squash the responses until processing is completed. - [X] ~~Orientation testing to verify axes are in correct direction.~~ added settings to allow controlling the orientation. -- [X] Calculate bed dimensions and apply to probe points for display on graph, #28. +- [X] ~~Calculate bed dimensions and apply to probe points for display on graph, #28.~~ ## Support My Efforts I, jneilliii, programmed this plugin for fun and do my best effort to support those that have issues with it, please return the favor and leave me a tip if you find this plugin helpful. diff --git a/octoprint_bedlevelvisualizer/__init__.py b/octoprint_bedlevelvisualizer/__init__.py index f96e143..5c398ec 100644 --- a/octoprint_bedlevelvisualizer/__init__.py +++ b/octoprint_bedlevelvisualizer/__init__.py @@ -35,7 +35,8 @@ def get_settings_defaults(self): stripFirst=False, use_center_origin=False, use_relative_offsets=False, - timeout=60) + timeout=60, + ignore_correction_matrix=False) ##~~ StartupPlugin def on_after_startup(self): @@ -72,6 +73,8 @@ def flagMeshCollection(self, comm_instance, phase, cmd, cmd_type, gcode, *args, return def processGCODE(self, comm, line, *args, **kwargs): + if self._settings.get_boolean(["ignore_correction_matrix"]) and re.match(r"^Bed Level Correction Matrix:.*$", line.strip()): + line = "ok" if self.processing and "ok" not in line and re.match(r"^((G33.+)|(Bed.+)|(\d+\s)|(\|\s*)|(\[?\s?\+?\-?\d?\.\d+\]?\s*\,?)|(\s?\.\s*)|(NAN\,?))+$", line.strip()): new_line = re.findall(r"(\+?\-?\d*\.\d*)",line) diff --git a/octoprint_bedlevelvisualizer/templates/bedlevelvisualizer_settings.jinja2 b/octoprint_bedlevelvisualizer/templates/bedlevelvisualizer_settings.jinja2 index a6ebd37..70c29d7 100644 --- a/octoprint_bedlevelvisualizer/templates/bedlevelvisualizer_settings.jinja2 +++ b/octoprint_bedlevelvisualizer/templates/bedlevelvisualizer_settings.jinja2 @@ -43,6 +43,11 @@ +