Sync print weight and time parameters

This commit is contained in:
2026-04-15 14:16:52 +03:00
parent 1834c7c369
commit 123100150b
3 changed files with 117 additions and 0 deletions

View File

@@ -98,6 +98,13 @@ BMB-<first-12-sha1-chars>
This means repeat prints of the same file/name reuse the same `Part` and create new `StockItem` rows. To change matching behavior later, edit `PART_KEY_FIELDS`.
## InvenTree Part Parameters
For each synced `Part`, the service updates these InvenTree parameters when matching parameter templates exist:
- `Weight`: filament weight per printed item in grams. If a Bambuddy archive has `quantity=2`, the total filament weight is divided by 2.
- `PrintTime`: print duration from Bambuddy. The visible value is formatted as `1h 6m 1s`; `data_numeric` stores the duration in seconds.
## Useful Endpoints
```text