GCodeSpoolInfo - OllisGit/OctoPrint-PrintJobHistory GitHub Wiki
What spool data do we need?
- Spool name
- Material
- Diameter
- Colorname
- Used length
- Vendor
For cost calculation we need additionaly
- Spool cost
- Spool weight
- Density
Additional Attributes delivered from other plugins
- Nozzel/Bed Temperatures
- total Layercount
- (thumbnail)
How can we get this?
- 3rd party plugin like https://github.com/NilsRo/OctoPrint-SlicerEstimator#custom-metadata
- Parse the gcode by our own
Possible GCode-Comment format
SlicerEstimator
;Slicer info:material_brand;{material_brand}
;Slicer info:material_name;{material_name}
...
see #58
SuggestionIn the gcode, it looks like this:
Eight different types is an extreme example; however this might occur across the field from time to time. It might make sense knowing this beforehand. ETA: possibly related to #13 as the filament change is done via 'tool change' and thus the M600 command.
ETA: take note, the filament_vendor entry seems to not take note at all in PrusaSlicer.
see #104
SuggestionA quick test shows me that repeating output is for next item:
This is output from a two-extruder job:
; filament used = 761.8mm (1.8cm3)
; filament used = 2.2g
; filament cost = 0.5
; filament used = 73.9mm (0.2cm3)
; filament used = 0.2g
; filament cost = 0.0
; total filament cost = 0.6
hmmm...what format should be implemented and what slicer will be supported or which feature-options do we have in the slicer
CURA-Options
http://files.fieldofview.com/cura/Replacement_Patterns.html
"Out-of-the-box"
- Spool name {material_name}
- Material {material_type}
- Diameter {material_diameter}
- Colorname N/A
- Used length N/A
- Vendor {material_brand}
- Spool cost N/A
- Spool weight N/A
- Density N/A
- Nozzel Temperature {material_print_temperature}
- Bed Temperatures {material_bed_temperature}
- total Layercount N/A
- (thumbnail) only with PreScript, see https://github.com/mriscoc/Marlin_Ender3v2/wiki/How-to-generate-a-gcode-preview#octoprint
Addition config:
...
Multi-Tool handling
???
Prusa-Options
"Out-of-the-box"
Addition config:
...
Simplify3D
"Out-of-the-box"
Addition config:
...
Other - Slicer Options
...