printhive/public
dlawler489 ba3bb415bb Track the filament you have, and what each model asks for
A Bambu Studio or OrcaSlicer 3MF names the filaments its plates use, but
reading that means shelling out to Python, so it can't be done per page load.
A background pass — in the same loop as thumbnails and fingerprints — reads it
once per model into models.filaments, which turns "what can I print now" into
a comparison of two lists.

Adds a Filament page for the spools on hand: material, colour, brand and grams
left, edited in place. Matching is on material only; a project's exact colours
would make almost nothing printable, and a different colour still prints.

Measured on the dev library: 10 models read with no errors, the two Bambu
projects resolving to four PLA colours each, and no plate images written
because the reader skips --images and queues behind anything interactive.

Not done yet: nothing in the library view uses this — no "printable now" badge
or filter — and the Filament page itself has not been seen rendered, because
the local preview browser has no session.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 11:18:54 +10:00
..
app.js Track the filament you have, and what each model asks for 2026-09-17 11:18:54 +10:00
favicon.svg Add SVG favicon (hexagon mark) 2026-06-23 13:35:57 +10:00
index.html Track the filament you have, and what each model asks for 2026-09-17 11:18:54 +10:00
styles.css Track the filament you have, and what each model asks for 2026-09-17 11:18:54 +10:00
viewer.js Fix model view for archives with long paths; preview inside archive-only models 2026-09-15 08:01:04 +10:00