TheSpaghettiDetective / obico-server

Obico is a community-built, open-source smart 3D printing platform used by makers, enthusiasts, and tinkerers around the world.
https://obico.io
GNU Affero General Public License v3.0
1.44k stars 292 forks source link

[Feature] Has anyone implemented an MQTT notification plug-in? #734

Open winnall opened 1 year ago

winnall commented 1 year ago

Is your feature request related to a problem? Please describe. I would like to link my 3D printer into my smarthome infrastructure, in particular to control a Hue light.

Describe the solution you'd like Any events in TSD should publish themselves in an MQTT server defined by the user.

Describe alternatives you've considered None. I already have and use MQTT, which is a commonly used and generic solution, and I’m not interested in further diversification.

Additional context I consciously chose to use hosting by Obico rather than self-hosting. The plug-in that should be suitable for hosting there. I could program it myself, but I’d have to learn Python first.

winnall commented 1 year ago

I’ve just realised that an MQTT notification plug-in should probably be in the same network as the MQTT server, at least in a smarthome context. Thus it is really only applicable to a self-hosted server.

For the Obico-hosted server, you’d probably want MQTT notifications to be generated by a client (in my case the Obico plug-in for OctoPrint).

kennethjiang commented 1 year ago

For anyone who wants to take a stab at this task, we have a in-depth tutorial for building a notification plugin at: https://obico.io/docs/tutorials/pushover-notification-plugin/

jcgoette commented 2 months ago

A few quick notes for future development: