Repository navigation
Afc weight - #33
Open
BastiMila wants to merge 6 commits into
Open
Afc weight#33BastiMila wants to merge 6 commits into
BastiMila wants to merge 6 commits into
Conversation
- Introduced new string identifiers for weight-related messages in i18n. - Added weight tracking logic in main.cpp to handle weight source preferences. - Updated UI components to display weight information from either the account or chip. - Enhanced screen_read and screen_scan to show weight status and warnings. - Modified account settings to allow users to choose weight source.
…bility documentation
…agement for AFC lanes
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Klipper/AFC: send the spool's weight, temperatures and brand - still nothing to install
Follows up on #31 and the Klipper backend in 1.73.0. Builds on its object-list
detection and adds what the old
TT_SET_LANEmacro used to carry, using onlycommands AFC and Klipper already have.
I know weight sharing is not in your main fokus
What an AFC lane now receives
After
SET_MATERIAL/SET_COLOR, in the sameprinter.gcode.script:"Weight from: Chip / Cloud" (NVS
wcloud, default Cloud). Cloud reads thespool's document
users/{uid}/inventory/{chip uid}(weight_available,measure_gr) - what a TigerScale keeps current - on its own task, startedthe moment the tag is read. Chip uses what is written on the tag and needs no
network. With no figure, no
SET_WEIGHTis sent and the result screen says soin orange; the printer keeps its previous value.
initial_weightat 1000 g. Whenprinter.objects.listshowssave_variables(Klipper's own section, present on OpenCreator), they gothere and are read back. Without it they are simply not sent.
MMU_GATE_MAPtakes no weight, and no warning isshown for it.
On the device
bottom to the percentage. Both are written into the existing widgets, so the
grid is not rebuilt while a print consumes filament. The brand is shown under
the slot again.
("Longer · 1.75 · 500 g").
past its 8 s budget), the send asks once more and waits at most 5 s, with a
line on the scan screen. A document that has no weight counts as an answer
and is not asked again.
in the compiled faces.
setacct-out,readcloud,readcloud-wait,scanweight,scanretry,resultweight,resultgrams.PrinterBackendgains three defaulted virtuals (setWeightFromCloud,weightSkipped,sentGrams) andSlotStatetwo fields (grams,percentKnown); no other backend changes behaviour.moonraker-ws-mock.pyunderstands the three new commands.
Tested
verify.sh: build passes.[save_variables], the 5 s retryon a real failure.