Add filament spool tracking sync

This commit is contained in:
2026-04-15 15:16:47 +03:00
parent 791c2235c5
commit ec0a0bf9af
8 changed files with 1157 additions and 2 deletions

View File

@@ -35,5 +35,26 @@ POLL_INTERVAL_SECONDS=300
SYNC_ON_STARTUP=false
HTTP_TIMEOUT_SECONDS=30
# Filament tracking. Keep dry-run enabled until /filament/status and
# /sync/filament?dry_run=true show the expected actions.
FILAMENT_TRACKING_ENABLED=false
FILAMENT_DRY_RUN=true
FILAMENT_PART_CATEGORY_ID=19
FILAMENT_STORAGE_LOCATION_ID=85
FILAMENT_LOADED_LOCATION_ID=72
# Map Bambuddy printer name prefixes to InvenTree child stock locations.
FILAMENT_PRINTER_LOCATION_MAP=B1:93,B2:94,B3:95,B4:96
# Bambuddy spool field that stores the InvenTree StockItem Batch Code.
FILAMENT_BATCH_SOURCE=tag_uid
FILAMENT_SYNC_SPOOLS=true
FILAMENT_SYNC_LOCATIONS=true
FILAMENT_SYNC_USAGE=true
FILAMENT_RETURN_UNASSIGNED_TO_STORAGE=false
FILAMENT_USAGE_LIMIT=200
FILAMENT_USAGE_SUCCESS_STATUSES=success,completed,complete,done
FILAMENT_DEFAULT_MATERIAL=PLA
FILAMENT_DEFAULT_LABEL_WEIGHT=1000
FILAMENT_DEFAULT_CORE_WEIGHT=250
# Persistent SQLite database inside the container.
DATA_DIR=/data