8 Commits
Author SHA1 Message Date
grabowski 719ddcf04a Print lamp ID labels on the Brother QL-820NWB
label_printer.py renders a DK-11221 23x23 mm label (QR code linking
to the lamp's buildfor.life page plus the ID) and sends it over the
network backend (brother-ql-next). The station prints two after each
successful measurement, one for the box and one for the lamp; printer
failures never lose a run, and any lamp can be reprinted with
uv run label_printer.py <ID>. Printer address via HPCS_LABEL_PRINTER
or --printer.
2026-07-09 18:15:01 +07:00
grabowski 7ef2960254 Station flow: ID first, EAN optional, re-measure by ID
Every run opens with the freshly allocated L#### and then asks for
the EAN, which Enter skips. Typing an existing ID re-measures that
lamp with all identification and rated values pre-filled, which also
rewrites old bundles in the current metrics format. Unused IDs are
never burned since numbering derives from written bundles.
2026-07-09 18:06:39 +07:00
grabowski 6140e1d4c9 Station no longer scaffolds device pages
The website derives its lamp list from the comparison-data bundles,
so measuring and pushing is the whole publish flow. Dead web-repo
constant removed with it.
2026-07-09 17:09:15 +07:00
grabowski 9fdb12b533 Canonicalize brand names; slim the scaffold to rated specs
Manufacturer input maps to one canonical spelling (seed list plus
whatever the database and cache already use), so Philips is never
philips/PHILIPS. Identity fields no longer duplicate into the device
page specs (the site renders them from metrics.json); the weight scan
ignores index.md so a fresh run starts at weight 1.
2026-07-09 15:38:53 +07:00
grabowski b62eac37c6 Prompt for dimmability; record it in metrics.json
y / n / Enter-if-unknown at the station; only known values are
written, and the scaffolded device page gets a Dimmable spec.
2026-07-09 15:16:46 +07:00
grabowski cf30182efa Update scaffold hint: submodule bump is now automated 2026-07-09 14:49:16 +07:00
grabowski fad8ec0813 Record lamp technology type (led / halogen / cfl / ...)
Station prompts for it (default led), metrics.json carries it as
'type', and the scaffolded device page description and Type spec
follow it.
2026-07-09 14:44:31 +07:00
grabowski 817822594c Add lamp_station.py: barcode-driven measurement workflow
Interactive loop around lamp_export.py: scan an EAN (checksum
validated, optional for barcode-less lamps), resolve it against
previous lamps / a local cache / upcitemdb.com, confirm
identification, record the packaging's advertised values, measure
per the published procedure, and commit the bundle to the
comparison-data repo with a device page stub for the web repo.

Every lamp is keyed by an internal ID (L0001, L0002, ...) so one EAN
can cover several versions (daylight/warm white variants) and
unbranded lamps work. lamp_export.py passes optional ean, variant,
and rated (advertised values) fields through into metrics.json.
2026-07-09 12:13:03 +07:00