feat(wui): Add extended fields to /api/v1/status#5229
Open
packerlschupfer wants to merge 1 commit intoprusa3d:masterfrom
Open
feat(wui): Add extended fields to /api/v1/status#5229packerlschupfer wants to merge 1 commit intoprusa3d:masterfrom
packerlschupfer wants to merge 1 commit intoprusa3d:masterfrom
Conversation
Add commonly needed telemetry fields to the PrusaLink v1 status endpoint, reducing the need for additional API calls: - temp_heatbreak / target_heatbreak: heatbreak temperature and target - print_fan_speed: print fan PWM value (0-255) - job_id: current print job ID - print_duration: print time in milliseconds - time_to_end: estimated remaining time in seconds (only during print) - progress: print completion percentage (0-100) These fields are already available in marlin_vars and exposed through the Connect telemetry, but were missing from the local PrusaLink API. Adding them enables local dashboards and Home Assistant integrations to display print progress without polling multiple endpoints.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add commonly needed telemetry fields to the
/api/v1/statusprinter object that are already available inmarlin_varsbut missing from the local PrusaLink API.New fields
temp_heatbreaktarget_heatbreakprint_fan_speedjob_idprint_durationtime_to_endprogressMotivation
These fields are already exposed through Prusa Connect telemetry but missing from the local API, forcing local integrations (Home Assistant, custom dashboards) to either use the cloud API or poll multiple endpoints. This is a simple addition with no breaking changes.
Test plan
GET /api/v1/statusreturns new fields while idletime_to_endappears only during active printprogressupdates during print