Closed hcooper closed 1 year ago
This looks awesome, and I am happy to merge it, but I am doing a smallish re-write atm, so ideally I would like to merge it afterwards? If I dont complete this rewrite I will merge it asap.
That's fine with me, no rush!
Hi @cameroncros
It seems the changes to octoprint_discordremote/templates/discordremote_settings.jinja2
were picked up in v4.6.0 but have since been missing in all later version. I can't quite figure out why.
This means you can't configure which gcodes you want to be notified about in the settings UI.
Yeah, thats bizarre. I will investigate
Thanks @cameroncros - it looks fixed in v5.10.0 :-)
This PR adds the ability to be notified when specific gcodes are sent to the printer.
A common use case for this is detecting when the M600 (filament change) gcode is sent. It's common for the printers to not clearly identify to octoprint they're waiting for human input (i.e. they don't report as being "paused").
This change supporst any arbitrary gcode detection, not just M600.
This feature (or support for M600 generally) been requested in the past, e.g. https://github.com/cameroncros/OctoPrint-DiscordRemote/issues/165 & https://github.com/cameroncros/OctoPrint-DiscordRemote/issues/65
Setting page:
Example discord message: