Thanks for posting this. I actually just discovered this pluggin today. I got it install and configured but I’m having trouble getting it to communicate with the printer after populated the Bambu Printer plugin page. It generates and key when I click login and everything seems to be correct. From the interface I can see the SD card contents and even see timelapses of old prints. That part appears to be working. Temperatures show 0 or 21.3 degrees. It swaps back and forth as I have been playing around. Currently they are at 0. When I try to print I find this error in my Octoprint.log. I’m not sure its related or not.
Do you think you could give me a hand trying to figure this out?
2024-07-30 20:56:34,280 - octoprint.plugins.bambu_printer.BambuPrinter - DEBUG - processing gcode M220 command = M220 S100
2024-07-30 20:56:34,295 - octoprint.plugins.bambu_printer.BambuPrinter.gcode_executor - DEBUG - Executing M220 (Set Feedrate Percentage)
2024-07-30 20:56:34,321 - octoprint.plugins.bambu_printer.BambuPrinter.gcode_executor - ERROR - Error during gcode M220 (Set Feedrate Percentage)
2024-07-30 20:56:34,341 - octoprint.plugins.bambu_printer.BambuPrinter.serial - INFO - ValueError: invalid literal for int() with base 10: '220 S100'
2024-07-30 20:56:34,357 - octoprint.plugins.bambu_printer.BambuPrinter.serial - DEBUG - Closing IO read loop
2024-07-30 20:56:34,384 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2024-07-30 20:57:04,268 - octoprint.util.comm - INFO - Communication timeout while printing, trying to trigger response from printer.
2024-07-30 20:57:05,277 - octoprint.util.comm - ERROR - Could not write anything to the serial port in 5 tries, something appears to be wrong with the printer communication
2024-07-30 20:57:05,280 - pybambu - WARNING - On Disconnect: Disconnected from Broker: 0
2024-07-30 20:57:05,787 - octoprint.util.comm - ERROR - Error while trying to close serial port
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/util/comm.py", line 1250, in close
self._serial.close()
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_bambu_printer/printer/bambu_virtual_printer.py", line 575, in close
self._serial_io.close()
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_bambu_printer/printer/printer_serial_io.py", line 98, in close
self.flush()
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_bambu_printer/printer/printer_serial_io.py", line 104, in flush
self.raise_if_error()
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_bambu_printer/printer/printer_serial_io.py", line 108, in raise_if_error
raise self._error_detected
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_bambu_printer/printer/printer_serial_io.py", line 72, in run
self._process_input_gcode_line(line)
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_bambu_printer/printer/printer_serial_io.py", line 184, in _process_input_gcode_line
self._handle_command_callback(gcode, command)
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_bambu_printer/printer/bambu_virtual_printer.py", line 466, in _process_gcode_serial_command
handled = self.gcode_executor.execute(self, gcode, full_command)
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_bambu_printer/printer/gcode_executor.py", line 307, in execute
return self.gcode_handlers[gcode](printer, data)
File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_bambu_printer/printer/bambu_virtual_printer.py", line 443, in _set_feedrate_percent
percent = int(data[1:])
ValueError: invalid literal for int() with base 10: '220 S100'
2024-07-30 20:57:05,789 - pybambu - WARNING - On Disconnect: Disconnected from Broker: 0
2024-07-30 20:57:05,828 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Offline after error"
2024-07-30 20:57:05,854 - octoprint.filemanager.analysis - INFO - Starting analysis of local:_3DBenchy_PLA_37m35s.gcode
2024-07-30 20:57:05,859 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 --bed-z=0.0 /home/pi/.octoprint/uploads/_3DBenchy_PLA_37m35s.gcode