final commit
This commit is contained in:
4
main.py
4
main.py
@@ -18,7 +18,7 @@ if __name__ == '__main__':
|
||||
# Connect to the BambuLab 3D printer
|
||||
printer.connect()
|
||||
|
||||
time.sleep(2)
|
||||
time.sleep(5)
|
||||
|
||||
# Get the printer status
|
||||
status = printer.get_state()
|
||||
@@ -26,7 +26,7 @@ if __name__ == '__main__':
|
||||
rem_time = printer.get_time()
|
||||
print(f'Remaining time {rem_time}')
|
||||
percent = printer.get_percentage()
|
||||
print(f'Remaining time {rem_time}')
|
||||
print(f'Percentage : {percent}')
|
||||
|
||||
# Disconnect from the Bambulabs 3D printer
|
||||
printer.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user