Skip to content

Plugin to analyze gcode for slicer settings comments and add additional metadata of such settings.

License

Notifications You must be signed in to change notification settings

larsjuhw/OctoPrint-SlicerSettingsParser

 
 

Repository files navigation

OctoPrint-SlicerSettingsParser

Adopted fork of tjjfvi/OctoPrint-SlicerSettingsParser

NOTE: Only supports Slic3r, Simplify3D, and Cura currently; suggest more in issues; contributions welcome!

Analyses gcode for slicer settings comments and adds additional metadata of such settings. Useless without plugin(s) to use the metadata.

Setup

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

https://github.com/larsjuhw/OctoPrint-SlicerSettingsParser/archive/master.zip

Configuration

Cura

Cura doesn't inject any slicer settings into the gcode by default, so you must add this to your start/end gcode. If you add it to the end gcode, make sure you check "Parse the file from back to front" in the plugin settings.

Python regexes

Cura

If you use the start/end gcode provided above, use this regex:

^; (?P<key>\w+[\w\s]*) = (?P<val>.*)

Slic3r

^; (?P<key>[^,]*?) = (?P<val>.*)

Simplify3D

^;   (?P<key>.*?),(?P<val>.*)

Other

This plugin uses Python regexes to parse the gcode. There should be two named capturing groups, key and val. Multiple regexes should be listed on seperate lines, ordered by precedence. Any chars are allowed in the groups; \n will be replaced by newlines.

If you can not figure it out yourself, open an issue and I can take a look.

About

Plugin to analyze gcode for slicer settings comments and add additional metadata of such settings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 66.4%
  • Jinja 24.7%
  • JavaScript 8.9%