OctoDash
OctoDash copied to clipboard
Get chamber temperture on main screen without plugins
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.
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.
@UnchartedBull any chance you can take look into this ? 🙂