Skip to content

fix(afc): pull remaining weight from Spoolman when enabled#1855

Merged
pedrolamas merged 1 commit into
fluidd-core:developfrom
paxx12:fix/afc-spoolman-weight
May 30, 2026
Merged

fix(afc): pull remaining weight from Spoolman when enabled#1855
pedrolamas merged 1 commit into
fluidd-core:developfrom
paxx12:fix/afc-spoolman-weight

Conversation

@paxx12

@paxx12 paxx12 commented May 30, 2026

Copy link
Copy Markdown
Contributor

When Spoolman is configured, spoolRemainingWeight now reads
spool.remaining_weight from the Spoolman spool data instead of
lane.weight from the AFC lane state.

This keeps the displayed weight and spool fill percentage in sync
with Spoolman's tracking (which accounts for filament consumed
across all prints), rather than relying solely on the value AFC
reports for the lane.

Falls back to lane.weight when Spoolman is not enabled or the
spool has no remaining_weight recorded.

Signed-off-by: paxx12 paxx12dev@gmail.com

When Spoolman is configured, `spoolRemainingWeight` now reads
`spool.remaining_weight` from the Spoolman spool data instead of
`lane.weight` from the AFC lane state.

This keeps the displayed weight and spool fill percentage in sync
with Spoolman's tracking (which accounts for filament consumed
across all prints), rather than relying solely on the value AFC
reports for the lane.

Falls back to `lane.weight` when Spoolman is not enabled or the
spool has no `remaining_weight` recorded.

Signed-off-by: paxx12 <paxx12dev@gmail.com>
@paxx12

paxx12 commented May 30, 2026

Copy link
Copy Markdown
Contributor Author

@jimmyjon711 Following our conversation about this change. Please review and approve.

@jimmyjon711 jimmyjon711 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with spoolman and change weight manually that AFC tracks, acts like it should and only pulls in spoolmans weight. Switch to not having spoolman and weight tracks AFC weight correctly.

@pedrolamas pedrolamas added the GH - Bug Something isn't working label May 30, 2026
@pedrolamas pedrolamas added this to the 1.37.1 milestone May 30, 2026
@pedrolamas pedrolamas requested a review from Copilot May 30, 2026 18:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes AFC lane weight display to read remaining_weight from Spoolman when available, keeping the displayed weight and reel fill percentage in sync with Spoolman's cross-print tracking rather than the AFC lane's reported weight.

Changes:

  • In spoolRemainingWeight, prefer spool.remaining_weight from Spoolman when the Spoolman component is supported and the value is present; otherwise fall back to lane.weight.

@pedrolamas pedrolamas merged commit 3988f39 into fluidd-core:develop May 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GH - Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants