OctoPrint-Webhooks icon indicating copy to clipboard operation
OctoPrint-Webhooks copied to clipboard

Ability to subscribe to custom events

Open derekantrican opened this issue 4 years ago • 3 comments

Unless I'm missing something, it looks like you can only subscribe to a specific set of events (started, done, failed, etc). You should be able to subscribe to custom events like you can with the OctoPrint-IFTTT plugin. For instance, the OctoPrint-ngrok plugin fires the plugin_ngrok_connected event when the tunnel is created and the plugin_ngrok_closed event when the tunnel is closed. It'd be great to be able to subscribe to these events and any other events fired by other plugins

derekantrican avatar Sep 21 '20 17:09 derekantrican

Hello,

I would be interested in such a function as well. As the plugin "OctoPrint-Telegram" is not python 3 compatible at the moment this would be a great way to handle notifications.

Regards Jörg

unclej84 avatar Sep 28 '20 13:09 unclej84

This sounds really good. Another usecase I was thinking about a LED lamp with WLED and firing a webhook on the event "stream_started/stopped" (pseudo name) would be a nice thing.

"Turn on LED light if stream is running, turn of if stream is stopped via webhook"

gandalfb avatar Jan 31 '21 19:01 gandalfb

@2blane it's been over a year on this, would it be feasible to include this? I'd love to see something similar to the OctoPrint-IFTTT plugin's interface where you can subscribe to custom events by name:

image

derekantrican avatar Oct 06 '21 03:10 derekantrican