Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to subscribe to custom events #17

Open
derekantrican opened this issue Sep 21, 2020 · 3 comments
Open

Ability to subscribe to custom events #17

derekantrican opened this issue Sep 21, 2020 · 3 comments

Comments

@derekantrican
Copy link

derekantrican commented Sep 21, 2020

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

@unclej84
Copy link

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

@gandalfb
Copy link

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"

@derekantrican
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants