Commit Graph

23 Commits

Author SHA1 Message Date
Matt Pumarlo
d6a76a50b5 chore: update translations and references 2026-06-23 08:31:48 -05:00
fd0ce5a63d Merge pull request 'feat: Spoolman filament tracking integration' (#65) from p2l/KX-Bridge-Release:feature/spoolman into master 2026-06-23 14:16:40 +02:00
5bff7adad0 build: sources for v0.9.26 2026-06-21 21:46:38 +02:00
Phil Merricks
0ade456be4 feat: Spoolman filament tracking integration
Adds optional Spoolman (https://github.com/Donkie/Spoolman) integration
for live filament consumption tracking.

Config (config.ini [spoolman] section or env vars):
  SPOOLMAN_SERVER    = http://192.168.x.x:7912
  SPOOLMAN_SYNC_RATE = 30   # mid-print sync interval in seconds (0=end only)

How it works:
- Uses supplies_usage from the printer's own MQTT print/report payload —
  the printer's cumulative extrusion counter in mm, reset each print.
  Discovered via MQTT payload inspection: matches slicer estimate within
  ~1% for model filament, and also captures the printer's purge/prime
  sequence that the slicer doesn't count.
- Reports to Spoolman via PUT /api/v1/spool/{id}/use with use_length (mm),
  letting Spoolman convert to weight using the spool's filament profile.
- Accurate for both completed and cancelled prints — no estimation needed.
- For multi-slot prints, total filament is split equally across mapped spools
  (v1 approximation; per-slot MQTT breakdown not available).

UI changes:
- Filament assignment dialog gains a Spoolman section (hidden when not
  configured): one spool dropdown per assigned AMS slot, loaded async
  from GET /kx/spoolman/spools.
- AMS slot display shows a 🧵 #N badge on any slot with a mapped spool.
- Spool assignments persist across prints (sticky until changed).

New API endpoints:
  GET  /kx/spoolman/status        — configured flag, server URL, slot map
  GET  /kx/spoolman/spools        — spool list proxied from Spoolman
  POST /kx/spoolman/active-spool  — body: {"slot_map": {"0": 42, "1": 17}}

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-18 20:50:04 +01:00
eea570052f build: sources for v0.9.25 2026-06-17 07:15:31 +02:00
303297bfbf build: sources for v0.9.24 2026-06-16 21:45:34 +02:00
6b9ad9d426 build: sources for v0.9.23 2026-06-16 15:15:47 +02:00
ed30568092 build: sources for v0.9.22 2026-06-16 13:12:04 +02:00
1f300589d1 build: sources for v0.9.21 2026-06-14 11:00:32 +02:00
3f6ea269e6 build: sources for v0.9.20 2026-06-08 23:14:50 +02:00
9c82073540 build: sources for v0.9.19 2026-06-02 13:31:47 +02:00
ac695ecf36 build: sources for v0.9.18 2026-05-31 19:53:36 +02:00
e4b4d091f3 Spanish translation 2026-05-31 15:42:28 +02:00
d26b37b332 build: sources for v0.9.17 2026-05-30 19:29:10 +02:00
d808cd3ea8 fix(de): fd_used 'GENUTZT' → 'BELEGT' (klingt im deutschen Slot-Kontext natürlicher) 2026-05-30 18:28:28 +02:00
Gangoke
ecd444525a additional mappings and translations 2026-05-28 17:40:22 -10:00
Gangoke
cdaf74985c locale detection to auto select language if user didnt change language manually 2026-05-28 14:41:44 -10:00
Gangoke
8383c59b39 language refactor, baseline, de, en, es, zh-cn 2026-05-28 14:34:17 -10:00
1645de4cad fix: Review-Fixes für PR #32 (Content-Disposition + DE-Übersetzungen)
Nach Squash-Merge von #32 die Reviews-Anpassungen nachgereicht, die im
Dev-Repo (viewit/KX-Bridge@7c834bc) bereits enthalten waren:

- Content-Disposition mit RFC5987 filename*=UTF-8 + ASCII-Fallback
- DE-Strings im Verify-Dialog übersetzt (msg/confirm/abort)
2026-05-27 23:38:05 +02:00
gangoke
42898c385c feat: GCode Web-Upload + Download + Verify-Dialog (PR #32)
Übernommen mit Anpassungen aus PR #32 von @gangoke:
- Drag&Drop GCode-Upload
- Download-Button pro Datei
- Web-Upload-Verify-Dialog (persistent Flag, global abschaltbar)

Review-Fixes:
- Content-Disposition mit RFC5987 filename*= + ASCII-Fallback
- DE-Strings übersetzt

Dev-Repo: viewit/KX-Bridge@7c834bc
Co-authored-by: gangoke <gangoke@noreply.localhost>
Co-committed-by: gangoke <gangoke@noreply.localhost>
2026-05-27 23:37:41 +02:00
40a27a47fc build: sources for v0.9.16 2026-05-22 11:26:16 +02:00
7815c66a82 build: sources for v0.9.15 2026-05-21 21:17:41 +02:00
312b4083d2 build: sources for v0.9.14 2026-05-21 14:35:25 +02:00