paukstelis / Octoprint-Cancelobject

104 stars 11 forks source link

event to other plugin #66

Open giloser opened 3 years ago

giloser commented 3 years ago

Hi thanks for the plugin I really love it.

I work on the telegram plugin and someone ask if it could be possible to send a message when we changed object. I see that you send one for the frontend, would it be possible also to fire an event for the python plugin part?

something like eventManager().fire("CancelObject_update", info of the object)

thanks a lot

paukstelis commented 3 years ago

There is now a change_event branch that will trigger on object updates and object cancellations.If you can give that a try and report back how it works, I will push it in the next release.

giloser commented 3 years ago

thanks a lot! I'll try that as soon as I can.

paukstelis commented 3 years ago

Get a chance to check this? I'm going to put out 0.4.5 shortly and will include the changes if they work for your application.