jneilliii / OctoPrint-M117SpeechSynthesis

5 stars 1 forks source link

Feature Request: add option to ignore list of chars in m117 #6

Closed StefanIGit closed 6 years ago

StefanIGit commented 6 years ago

I have a plugin which sends the print progress like m117 ######### 70% so this give a funny effect, hear: SoundRecord-2018-01-27-15-55-47.zip

I'm not really good with regex so maybe you can add it directly in the alert or make config option.

nice plugin btw :)

jneilliii commented 6 years ago

That's going to be tricky. I think you're using the DetailedProgress or DisplayProgress plugin, which sends M117 commands through to the lcd panel for completion progress, etc. I'll see if there is a way to ignore those, but I'm not guaranteeing anything. Can you confirm which plugin you are using?

StefanIGit commented 6 years ago

Hi I think it is [https://github.com/OctoPrint/OctoPrint-DisplayProgress](this one) since I have it installed and the image looks similar. bye

jneilliii commented 6 years ago

I just released a new version 0.5.0 that allows for enabling a custom gcode command. This would allow you to bypass the speaking of other M117 commands from the other plugins. To use, replace any M117 commands in your gcode you want to be spoken to be @SPEAK. So for example if you want to say "Print complete" you would use @SPEAK Print complete. Hopefully that works for you.