Description

This commit is contained in:
Ian Gulliver
2026-07-25 08:42:24 -07:00
parent 9d0f570c85
commit 700b53d50c
3 changed files with 20 additions and 6 deletions
+2
View File
@@ -32,6 +32,7 @@ type result struct {
Image string `json:"image"`
SpoolID string `json:"spool_id,omitempty"`
URL string `json:"url,omitempty"`
Description string `json:"description,omitempty"` // brand/material/type/color
Location string `json:"location,omitempty"`
PreviousWeight *weightBreakdown `json:"previous_weight,omitempty"` // as read from spooldb
NewWeight *weightBreakdown `json:"new_weight,omitempty"` // from the measured photo
@@ -202,6 +203,7 @@ func processImg(img image.Image, name string, auth claude.Auth, dryRun bool) res
}
if info != nil {
r.Location = info.Location
r.Description = info.Description
r.PreviousWeight = &weightBreakdown{
Spool: ptr(info.EmptySpoolGrams),
Filament: ptr(info.RemainingGrams),