Repository navigation
feat: show time left, elapsed and estimated finish in status - #1
Merged
Merged
Conversation
Owner
|
Hi Petr, thanks for these. I'd tabled prusactl as bug-fixes-only, but with someone interested in it I'm reopening it for features. I reviewed all five. This one is clean and I'm merging it. The only change is a rebase: Your branches have maintainer edits on, so for the others I'll push the small fixes onto each branch and note what I changed in the PR. If you'd rather do them yourself, say so and I'll post the list instead. |
The status line for a running print showed only the progress. To learn when the print ends, you had to read the printer screen or calculate from the percentage. Both routes already report `time_remaining` and `time_printing` in seconds. The status line now adds the time left, the finish time on the local clock, and the time elapsed: PRINTING 89%, 23m left (ends ~12:41), 2h10m elapsed, nozzle 250/250°C `get_printer` and `list_printers` gain `time_elapsed` and `ends_at` next to `time_remaining`. The `internal/jobtime` package reads the fields, so the CLI line and the MCP summary leave out the same values: a value that is missing, negative or not a number. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
trevin-lee
force-pushed
the
pr/status-timing
branch
from
October 10, 2026 07:48
2c08aa8 to
8c19ffc
Compare
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.
hi, my clankers found this nice project during research, I liked it so decided to make you aware about the changes I've made for my use cases, so everyone can profit from that, but feel free to close it or implement it differently, happy to help with testing, cheers, Petr
prusactl statusshowed the progress of a running print, but not when the print ends. PrusaLink and Prusa Connect both reporttime_remainingandtime_printingin seconds. The status line now adds the time left, the finish time on the local clock, and the time elapsed:get_printerandlist_printersgaintime_elapsedandends_at(RFC 3339) next totime_remaining. The newinternal/jobtimepackage reads the fields once, for the CLI and for the MCP summary. Both leave out the same bad values: a value that is missing, negative or not a number.Compatibility:
time_remainingandtime_elapsedare whole seconds.Testing
go test ./...,go vet,gofmt.