2blane / OctoPrint-Webhooks

Make OctoPrint events call your custom webhooks!
GNU Affero General Public License v3.0
28 stars 19 forks source link

Request for feature #2

Closed cibgraphics closed 4 years ago

cibgraphics commented 4 years ago

Maybe not the entire point of this plugin, but maybe make it possible to send more info through the API like time (remaining/progress/total), name of file being print, etc?

2blane commented 4 years ago

@cibgraphics just added to the list!

teamzaure commented 4 years ago

hello would it be possible to have one url per event ? thanks

2blane commented 4 years ago

@teamzaure yes this is on the list. Was going to add the ability to have multiple webhooks defined. This way, you could have one web hook that just responds to Print Started, and another that just responds to Print Finished, etc. This should cover your use case.

2blane commented 4 years ago

@cibgraphics @teamzaure just added a ton of properties that you can include in your webhooks including a snapshot, progress, job details, file metadata, etc. If you come up with anything missing let me know.

2blane commented 4 years ago

@teamzaure just pushed an update to allow multiple webhooks. This will allow you to have a different url per event. You can get one web hook working, then just duplicate the web hook, change the url and events enabled and you're good to go.