Temperature overide

Is it possible to have a feature in Octoprint to intercept and override the temperature commands?
The reason being that I have models sliced for PLA and I'm printing in PETG, and vice versa.
It's not a big deal to edit the G-Code before printing, but I thought it ought not be difficult to get it to do it automatically.

I suppose the proper answer is that if it is that easy then I should go write myself a plugin, but I don't know where to start, and I thought I should in any case first seek for unforeseen problems with the idea...

You are aware that the difference with printing PLA vs. PETg is not just only the temperature?
E.g. :PETg awaits way less part cooling than PLA.
Also retraction can be different.
And also maximum volumetric speed.

That may explain some of the problems I've been having, but for the most part, on most of the things I'm printing at the moment I don't think it matters much.

1 Like