feat: Display current Z height in print UI #49

Merged
viewit merged 2 commits from Nathacks/KX-Bridge-Release:add-z-height into master 2026-06-08 19:34:20 +02:00
Contributor

Summary

  • Exposes the current Z position (mm) from the bridge backend via _estimate_current_z()
  • Adds a new z_mm field to the print status payload
  • Renders Z height as a stacked block below the layer counter in the print UI
  • Adds lbl_zpos translation key to all 5 supported languages (EN, DE, ES, FR, ZH-CN)

Changes

  • kobrax_moonraker_bridge.py — include z_mm in status data
  • web/themes/default/app.js — track z_mm in state, render value in UI, wire translation label
  • web/themes/default/index.html — add Z position block next to layer counter
  • web/translations/*.json — add lbl_zpos key
## Summary - Exposes the current Z position (mm) from the bridge backend via `_estimate_current_z()` - Adds a new `z_mm` field to the print status payload - Renders Z height as a stacked block below the layer counter in the print UI - Adds `lbl_zpos` translation key to all 5 supported languages (EN, DE, ES, FR, ZH-CN) ## Changes - `kobrax_moonraker_bridge.py` — include `z_mm` in status data - `web/themes/default/app.js` — track `z_mm` in state, render value in UI, wire translation label - `web/themes/default/index.html` — add Z position block next to layer counter - `web/translations/*.json` — add `lbl_zpos` key
Nathacks added 2 commits 2026-06-07 19:31:31 +02:00
viewit approved these changes 2026-06-08 19:10:24 +02:00
viewit left a comment
Owner

Clean PR — merged manually into dev repo with path adjustments (bridge/ prefix). z_mm field + Z-height UI block + all 4 translations applied.

Clean PR — merged manually into dev repo with path adjustments (bridge/ prefix). z_mm field + Z-height UI block + all 4 translations applied.
viewit merged commit d14970ca49 into master 2026-06-08 19:34:20 +02:00
Owner

Thanks @Nathacks — clean and well-structured PR!

The Z height block is now merged and will be included in the next release. Looking forward to seeing more contributions from you!

Thanks @Nathacks — clean and well-structured PR! The Z height block is now merged and will be included in the next release. Looking forward to seeing more contributions from you!
Nathacks deleted branch add-z-height 2026-06-09 00:29:41 +02:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: viewit/KX-Bridge-Release#49
No description provided.