mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
[PR #272] [CLOSED] AMS Lite to Spoolman #981
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy#981
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/maziggy/bambuddy/pull/272
Author: @adrilop002
Created: 2/4/2026
Status: ❌ Closed
Base:
0.1.8b← Head:feature/spoolman-etl📝 Commits (6)
192f0f7Add spool ETL script and Spoolman synca179df2Merge branch '0.1.8b' into feature/spoolman-etl3abc602Merge branch '0.1.8b' into feature/spoolman-etlfd8697dMerge branch '0.1.8b' into feature/spoolman-etlbbb1f2fUpdate bambuddy_etl_spools.shc3aa612Merge branch '0.1.8b' into feature/spoolman-etl📊 Changes
1 file changed (+586 additions, -0 deletions)
View changed files
➕
scripts/bambuddy_etl_spools.sh(+586 -0)📄 Description
Description
Adds a new helper script scripts/bambuddy_etl_spools.sh to extract filament usage from bambuddy.db into a local tracking.db, generate CSV summaries, and (optionally) sync spool remaining weight to Spoolman.
The script is designed to be safe for repeated runs and uses INSERT OR IGNORE to avoid duplicates. It also warns if spoolman_map (tag_uid -> spool_id) mappings are missing, and only syncs mapped spools.
Related Issue
Fixes #
Type of Change
Changes Made
Added basic color mapping (color_map) and spool mapping table (spoolman_map) support.
Added Spoolman sync: PATCH /api/v1/spool/{spool_id} updating remaining_weight (overwrite mode), with fail-soft behavior and logging to out/spoolman_push.log. (remaining_weight and used_weight are not set together.)
Screenshots
Testing
Ran ./scripts/bambuddy_etl_spools.sh against a real bambuddy.db and verified generated CSV output.
Confirmed Spoolman updates by checking the remaining weight values after running the script.
Checklist
Additional Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.