Printer model: Ender 3 V2
MCU: Raspberry Pi
Slicer Cura 5.1.0
klippy (3).zip (34.3 KB)
Hi All,
Does anyone know how to get all the metadata to show for the G-Code files. I attached a screen shot & you can see most of the metadata is not there like nozzle dia, filament name, type & weight etc.
I don’t know if this is a slicer issue or a Mainsail/Klipper issue but I cannot find any information on either.
Any suggestions?
Sineos
November 2, 2022, 5:54pm
2
Check your gcode file if the information is contained in the first few lines. If not, then there is nothing to display in the web-if.
As far as I’m aware, Cura does not put down such information by default.
See http://files.fieldofview.com/cura/Replacement_Patterns.html for available replacement patterns. Put it into the start gcode although I do not know which keywords are expected by moonraker.
Could be moonraker/metadata.py at 60b871adbe3ed363ca999d3a080cf335a71baddb · Arksine/moonraker · GitHub
Maybe @Arksine can comment
Thanks for that. I will have a look through it & see what I get working.
The short explanation is that Cura does not add this metadata by default. I believe the following needs to be added to your Start G-Code in Cura:
;Filament weight = {filament_weight}
;Nozzle diameter = {machine_nozzle_size}
;Filament type = {material_type}
;Filament name = {material_name}
References:
Arksine:master
← th33xitus:metadata
opened 02:39PM - 13 Apr 21 UTC
There was a request of adding filament weight as an additional key for clients t… o work with as can be seen here: https://discord.com/channels/758059413700345988/826580737154089051/829425183168135189
A new key `filament_weight_total` was defined clients can access.
Supports G-Code from:
- PrusaSlicer
- SuperSlicer
- Slic3r
- Simplify3D
- ideaMaker
- Cura
**Note:**
Cura offers a special placeholder for the filament weight that was used here.
This requires the user to have a specific comment in the start g-code section defined:
`;Filament weight = {filament_weight}`
**Client developers should mention this requirement in their documentation.**
---
Additional change:
- Added parsing of `filament_total` for Slic3r
Arksine:master
← th33xitus:parse_nd
opened 10:38AM - 31 Dec 21 UTC
This PR will add parsing of 3 new, optional metadata types for:
- PrusaSlicer a… nd it's derivatives
- Simplify3D
- Cura
- IdeaMaker
Those types are:
* Nozzle diameter
* Filament type
* Filament name
Note: As far as i am aware Simplify3D does not provide any info about the filament type. At least i didn't find anything during research and testing. So in case of Simplify3D, this PR will only provide filament name and nozzle diameter.
For Cura and IdeaMaker it is necessary to add a custom start g-code comment because they do not output the requested metadata to the g-code file by default. But they do provide internal placeholder variables for those values. The required lines for the start g-code are as follows (it is important to have the exact syntax as shown) :
Cura:
```
;Nozzle diameter = {machine_nozzle_size}
;Filament type = {material_type}
;Filament name = {material_name}
```
IdeaMaker:
```
;Nozzle diameter = {machine_nozzle_diameter1}
;Filament type = {filament_name_abbreviation1}
;Filament name = {filament_name1}
```
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
3 Likes
Thanks for that. I added these & they are showing in my saved G-Code file now.
Unfortunately not that simple as Mainsail still doesn’t show it. So the next step is to find out how to get Mainsail to show these details.
Thanks for that thread!
Yesterday I added the parameter to Cura start code and since then it shows it in Mainsail:
So in general it should work!
1 Like
So this was working for a nice while but for some unknown reason it just stopped working.
The last time is worked for me was November 8th didn’t work on November 10th?
It is as if the metadata nonmature has changed in Cura 5.1.0?