- error information for errors leading to disconnect or cancelling
will now be persisted in the printer object until reconnect or print
start
- a new REST API endpoint allows fetching that information
- the frontend has be adjusted to fetch that on server connect and
relevant events and show an error icon next to the printer state
which on click opens the modal
- additionally, the modal will be triggered if an error event is raised
Improves #4714
Provides more details incl. log excerpt
and FAQ link, to hopefully help users
diagnose printer issues themselves
instead of assuming OctoPrint caused
them.
Implements #4714
Instead of customizing an existing tool that does a lot of stuff
that we don't need but lacks what we DO need (branch based virtual
tags), now there's a custom single file implementation that mixes
concepts from versioneer, miniver and the lookup that so far was
implemented in OctoPrint's custom build of versioneer, and does so
with less overhead.
Closes#4685
Will call `onWebcamRefresh` on the bound viewmodel of the currently
active webcam. It is up to the implementing webcam view model
to execute the actual refresh.
Only the mjpg stream type of the classicwebcam currently supports
this, for the other stream types it is a no-op.
Note that the button will be displayed on mouseover regardless of
whether it will actually be capable of triggering a refresh or not.
Also adjusted the fade-in animation of the keycontrol overlay to
match the refresh button and webcam selector.
Implements #4617
* log extruder and file position on pause
* satisfy linter
* move values into event, include also cancel action
* please the linter
* updated event documentation
* ♻️ Remove data redundancy
We really don't want to include origin and filename
in the event again when all we actually want
is the fileposition.
---------
Co-authored-by: Gina Häußge <gina@octoprint.org>
* Handles M115 GEOMETRY capability report
* No need to use a separate format string...
* Origin has no effect on machine height...
* ♻️ virtual: refactor area report
Now depends on a single config setting `m115ReportArea`.
If true, the virtual printer will generate an area report from the current
printer profile and include it in the M115 reponse. Ships as false
by default.
---------
Co-authored-by: Gina Häußge <gina@octoprint.org>
Four new hooks were added:
- octoprint.plugin.backup.before_backup
- octoprint.plugin.backup.after_backup
- octoprint.plugin.backup.before_restore
- octoprint.plugin.backup.after_restore
Those will allow plugins to perform additional
tasks right before/after backup and right before/
after restore.
This is a compromise for #4195: Instead of having
an extension point in OctoPrint to pull in
additional files, having to figure out
readability, proper allow listing to prevent
attempts to backup everything and the kitchen sink
and such, plugins CAN pull in additional stuff
they want to have in the backup into their data
folder and then on restore (or start after
restore) put it where it belongs. In an ideal
world, we would ever only want to backup stuff
that is already in the base folder anyhow, but
as #4195 demonstrates there is sometimes a need
for more.
And since these hooks are not limited to this
functionality specifically but could also be used
for other stuff (think reregistering somewhere
after restore or whatnot), I think they are a
good compromise.
Implements #4195