Backport moonraker metadata: filament_name and filament_type as array#358
Backport moonraker metadata: filament_name and filament_type as array#358
Conversation
Backports upstream commit 3a54161 to return filament_name and filament_type as JSON arrays for multi-material slices, fixes #355. Also restructures patch paths under home/lava/moonraker/ to match the target filesystem layout.
Backports upstream commit 4eb23ef before the filament array patch, fixes regex_find_strings to correctly handle quoted values with embedded separators.
…r PS/SS Backports upstream commit 18f3da5 to also check "total toolchanges" before "total filament change" for PrusaSlicer/SuperSlicer compatibility.
…usaSlicer Backports upstream commit 6b1b8c5 to sum per-extruder filament lengths from "filament used [mm]" instead of parsing only the first value.
7df2d06 to
b296657
Compare
|
@gaaat98 please test this build |
|
Hi, thanks a lot for the time you are dedicating to this! I am unable to build, but just looking at the changes, I can tell you this will not work because:
With a correct metadata.py that implements We have two options here: the easy one is to take the array and return as ; separated strings or, if you can find where this metadata is processed by the firmware and patch it to parse the JSON array, I tried to locate where this happens but failed miserably. Let me know what you think, if you can find where to patch I can work on it, or if we decide to go with the easier option, I can update the fix! |
Backports upstream commit 3a54161 to return filament_name and filament_type as JSON arrays for multi-material slices, fixes #355.
Also restructures patch paths under home/lava/moonraker/ to match the target filesystem layout.