Sync Bambuddy thumbnails to InvenTree parts

This commit is contained in:
2026-04-15 14:21:20 +03:00
parent 123100150b
commit beaa210466
6 changed files with 74 additions and 1 deletions

View File

@@ -105,6 +105,18 @@ For each synced `Part`, the service updates these InvenTree parameters when matc
- `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.
## InvenTree Part Images
When `SYNC_PART_IMAGES=true`, the service downloads the Bambuddy archive thumbnail and uploads it to the InvenTree `Part.image` field.
By default, existing InvenTree part images are preserved:
```env
OVERWRITE_PART_IMAGES=false
```
Set `OVERWRITE_PART_IMAGES=true` if Bambuddy thumbnails should replace existing part images.
## Useful Endpoints
```text