OctoPrint-Webhooks
OctoPrint-Webhooks copied to clipboard
Ability to subscribe to custom events
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
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
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"
@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: