OctoPrint / OctoPrint-MQTT

An OctoPrint Plugin that adds support for MQTT.
GNU Affero General Public License v3.0
156 stars 53 forks source link

Feature request: M117 events (and M300, M150) #96

Open skvalen opened 3 years ago

skvalen commented 3 years ago

Hi, sending M117 (lcd message) events would be nice feature, and also M300 and M150 would be nice.

something like: topic: octoPrint/event/M117 payload: {"message": "Hello World!"}

M300 - Play Tone topic: octoPrint/event/M300 payload {"P": ms, "S": hz}

M150 - Set RGB(W) Color topic: octoPrint/event/M150 payload: {"B": intensity, "I": index, "P": intensity, "R":intensity, "U": intensity, "W" intensity}

RoboMagus commented 1 year ago

Just came accross this issue when looking into something else.

Probably a dead topic, but I'll post this here anyway in case someone is looking for the same feature. About a year ago I wrote a little plugin that could be used together with this one to achieve this goal: Custom GCode Events.

Having the MQTT plugin setting Activate event messages enabled, events produced by the mentioned plugin would be published on the specified topic.