OctoDash icon indicating copy to clipboard operation
OctoDash copied to clipboard

Get chamber temperture on main screen without plugins

Open Ybalrid opened this issue 1 year ago • 2 comments

Hello 👋

First time contributing to this project (and touching TypeScript).

See discussion in #2562

This changeset displays a printer's chamber temperature without requiring the Enclosure plugin's usage.

This is achieved using the standard OctoPrint feature for printers that reports chamber temperatures with a readout called "C" (alongside "T" and "B").

  • A Chamber temperature is added to the PrinterStatus model
  • When receiving printer data from the WebSocket, it is added to the PrinterStatus message if a current chamber temperature is found.
  • If the bottom bar component does not find an Enclosure configuration but can find a chamber temperature readout, it will be set as the enclosure chamber temperature and displayed on the screen. The temperature is displayed in the HTML element already set up for the enclosure plugin.

Ybalrid avatar May 18 '23 21:05 Ybalrid

This now shows the chamber temperature directly from Octoprint in the bottom bar, where the Enclosure plugin also shows the temperature.

Note: This currently may conflict with the enclosure plugin. Needs testing.

image

Ybalrid avatar May 21 '23 18:05 Ybalrid

@UnchartedBull any chance you can take look into this ? 🙂

Ybalrid avatar Jun 05 '23 15:06 Ybalrid