Verified Commit 215e176e authored by Grégor JOUET's avatar Grégor JOUET 🔧
Browse files

Print next print info

parent 6f225ef6
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -411,6 +411,7 @@ class OctoPrinter(PrinterBase):
            return
        np, queue = self._get_next_print()
        if np is None:
            self.log(f"Nothing to print")
            return
        self.start_print(np)
        # After the print is started and set as the current print, the request is removed from queue
@@ -600,6 +601,8 @@ class OctoPrinter(PrinterBase):

    def _refresh_printer_status(self):
        self.log(f"Refreshing status")
        if self.version == "Unknown":
            self.test_and_pull_printer_global_info()
        status = self._make_octoprint_raw_request("/api/printer")
        self.printer_state = {
            "temperatures": {