OctoPrint-OctoPod icon indicating copy to clipboard operation
OctoPrint-OctoPod copied to clipboard

Plot additional M105 temps in graph - Enhancement

Open jalanjarosz opened this issue 3 years ago • 6 comments

Klipper FW allows for additional temperature sensors that can be announced though the standard M105 G-Code.

Could OctoPod temp graph be enhanced to plot additional temperatures reported through M105?

Here is a sample M105 response from my printer:

end: M105
Recv: ok B:18.4 /0.0 M4:23.7 /0.0 T0:19.1 /0.0 sbc:47.0 /0.0
Send: M105
Recv: ok B:18.4 /0.0 M4:23.5 /0.0 T0:19.1 /0.0 sbc:46.0 /0.0

'M4' and 'sbc' are custom sensors and they could be named anything.

Thanks for this consideration.

jalanjarosz avatar Jan 30 '22 02:01 jalanjarosz

This is a great idea. Scheduling for next release. I do not use Klipper so will let you know when I have a version for you to test and confirm that works fine. Ok?

Gaston

gdombiak avatar Jan 30 '22 03:01 gdombiak

Awesome. Yes, I'd be happy to test it out. Thank you.

James

jalanjarosz avatar Jan 30 '22 11:01 jalanjarosz

Hi @jalanjarosz,

Couple of questions:

  1. Does Klipper support M155 for auto-reporting?
  2. If M155 is supported, does Klipper include these extra sensors in the report?

If M155 is supported and extra sensors are included then I will see how to capture that info and make OctoPod display them in the temp graph.

Thanks, Gaston

gdombiak avatar Jan 30 '22 19:01 gdombiak

It does not, out of the box.

I see the input is M155 S# where # is seconds.

What does the Marlin output look like?

I'm thinking I could try to write a custom Klipper macro to get what is needed?

jalanjarosz avatar Jan 30 '22 21:01 jalanjarosz

I spent a bit of time and checked the M155 command. I can easily write a Klipper macro to support this.

jalanjarosz avatar Feb 01 '22 11:02 jalanjarosz

@gdombiak adding direct support to Klipper might be a better idea? That would mean your project isn't tied just to Octoprint.

Aren't you accessing the Octoprint API? Klipper has Moonraker -

https://github.com/Arksine/moonraker

I haven't installed it yet, but I'm going to soon. Seems the Klipper developers are moving away from Octoprint as Mainsail and Fluidd web UI's are getting more features.

What's your thoughts? I'm willing to assist in the testing portion.

jalanjarosz avatar Feb 03 '22 11:02 jalanjarosz