Skip to content

EventSystem

OllisGit edited this page Jan 12, 2022 · 2 revisions

Server-Side events:

https://docs.octoprint.org/en/master/events/

See also Uninstall-Plugin: https://community.octoprint.org/t/uninstall-hook-for-plugins/39823

def on_event(self, event, payload):
  if Events.PRINT_STARTED == event:
    self.alreadyCanceled = False
    self._createPrintJobModel(payload)
    ...

Client-Side events (ViewModelCallbacks):

https://docs.octoprint.org/en/master/plugins/viewmodels.html#callbacks

Clone this wiki locally