mdziekon / OctoPrint-SpoolManager

Plugin for managing Spools
21 stars 3 forks source link

Add "invalid material type" detection to GCODEs generated by PrusaSlicer #39

Open mdziekon opened 1 year ago

mdziekon commented 1 year ago

With various material types comes the risk of accidentally using GCODE sliced for a different material than the currently loaded one. PrusaSlicer, at least in "verbose mode", attaches filament type information in the prusaslicer_config = begin section, filament_type property.

The idea here is to add a safe guard, in the same place as "not enough filament" guard, which would try to load the GCODE, parse it, and detect the filament type, and warn users if wrong filament is being used. A similar feature is present on Prusa machines (at least on MINI+) when NOT using OctoPrint.

TODO:

Requirements: