Skip to content

octoprint.schema.config.events#

EventSubscription #

Bases: BaseModel

command: str class-attribute #

The command to execute when the event is triggered, either a GCODE or a system command.

debug: bool = False class-attribute #

If set to true, OctoPrint will log the command after performing all placeholder replacements.

enabled: bool = True class-attribute #

Whether the event subscription should be enabled.

event: str class-attribute #

The event to subscribe to.

type: SubscriptionTypeEnum class-attribute #

The type of the command.

EventsConfig #

Bases: BaseModel

enabled: bool = True class-attribute #

Whether event subscriptions should be enabled or not.

subscriptions: List[EventSubscription] = [] class-attribute #

A list of event subscriptions.

Back to top