-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Hi I have problem with start_print on A1mini. I want start print. The file is in my printer A1mini in root directory. If i try start print the A1mini nothing to do. The file was upload to A1mini, using bambustuido. Can you help me please?
This is my code:
#!/usr/bin/env python3
import time
import bambulabs_api as bl
IP = 'IP'
SERIAL = 'SN'
ACCESS_CODE = 'AC'
file_to_print = 'UFSE AMS Lite - a1 mini - windowed_Lables x 1.gcode.3mf'
if __name__ == '__main__':
print('Starting bambulabs_api example')
print('Connecting to BambuLab 3D printer')
print(f'IP: {IP}')
print(f'Serial: {SERIAL}')
print(f'Access Code: {ACCESS_CODE}')
# Create a new instance of the API
printer = bl.Printer(IP, ACCESS_CODE, SERIAL)
# Connect to the Bambulabs 3D printer without connecting to the camera
printer.mqtt_start()
time.sleep(2)
success = printer.start_print('UFSE AMS Lite - a1 mini - windowed_Bucket 2.1 x 2.gcode.3mf', 1)
printer.mqtt_stop()
if success:
print("Start print.")
print(success)
else:
print("Error print.")
list files in my printer:
logger
image
recorder
ipcam
timelapse
cache
model
verify_job
all Sizes(2)_All Sizes.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Desiccant Holder (choose one) x 2.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Clips (Best in PETG) x 2.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Lables x 1.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Bucket 2.1 x 2.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Bucket 2.2 x 2.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Bucket 2.3 x 1.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Cover 1.1 x 2.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Cover 1.2 x 1.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Cover 1.3 x 2.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Bucket 1.1 x 2.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Bucket 1.2 x 2.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Bucket 1.3 x 1.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Action Panel (choose one) x 2.gcode.3mf
UFSE AMS Lite - a1 mini - windowed_Cover 2.3 x 2.gcode.3mf