Skip to content

bambuspool

Classes:

Name Description
BambuSpool

This value object is used by BambuPrinter to enumerate "spools" connected to the printer.

BambuSpool dataclass

Python
BambuSpool(
    id: int,
    name: str = "",
    type: str = "",
    sub_brands: str = "",
    color: str = "",
    tray_info_idx: str = "",
    k: float = 0.0,
    bed_temp: int = 0,
    nozzle_temp_min: int = 0,
    nozzle_temp_max: int = 0,
    drying_temp: int = 0,
    drying_time: int = 0,
    remaining_percent: int = 0,
    state: int = 0,
    total_length: int = 0,
    tray_weight: int = 0,
    slot_id: int = -1,
    ams_id: int = -1,
)

This value object is used by BambuPrinter to enumerate "spools" connected to the printer. It is used primarily within BambuPrinter's _spools attribute and is returned as part of a Tuple when there are spools active on machine.

Attributes:

Name Type Description
ams_id int

The AMS id associated with this spool. -1 represents no AMS associated with it.

bed_temp int

The target bed temperature to use.

color str

Will either be a color hex code or a color name if webcolors is able to recognize the color code.

drying_temp int

The drying temperature for the filament spool.

drying_time int

The drying time for the filament spool.

id int

Spool id can be 0-23 for AMS spools or 254-255 for the External spool(s).

k float

The K-Factor to use for determining optimial linear advance (flow rate).

name str

The name of the spool, typically only populated if a Bambu Lab RFID tag is recognized by the AMS.

nozzle_temp_max int

The maximum usable nozzle temperature to use.

nozzle_temp_min int

The minimum usable nozzle temperature to use.

remaining_percent int

The estimated remaining filament percentage.

slot_id int

The slot # within the ams or the external tray id for this spool (0 to 23 or 254 to 255).

state int

The current state of the spool.

sub_brands str

For Bambu Lab filaments, specifies the specialization of the filament (Matte, Pro, Tough, etc).

total_length int

The total length of filament on the spool in millimeters.

tray_info_idx str

The underlying index for the selected filament in Bambu Studio.

tray_weight int

The weight of the filament spool in grams.

type str

The type of filament in the spool. Will either be read by the RFID tag or set on the Printer display.

ams_id class-attribute instance-attribute

Python
ams_id: int = -1

The AMS id associated with this spool. -1 represents no AMS associated with it.

bed_temp class-attribute instance-attribute

Python
bed_temp: int = 0

The target bed temperature to use.

color class-attribute instance-attribute

Python
color: str = ''

Will either be a color hex code or a color name if webcolors is able to recognize the color code.

drying_temp class-attribute instance-attribute

Python
drying_temp: int = 0

The drying temperature for the filament spool.

drying_time class-attribute instance-attribute

Python
drying_time: int = 0

The drying time for the filament spool.

id instance-attribute

Python
id: int

Spool id can be 0-23 for AMS spools or 254-255 for the External spool(s).

k class-attribute instance-attribute

Python
k: float = 0.0

The K-Factor to use for determining optimial linear advance (flow rate).

name class-attribute instance-attribute

Python
name: str = ''

The name of the spool, typically only populated if a Bambu Lab RFID tag is recognized by the AMS.

nozzle_temp_max class-attribute instance-attribute

Python
nozzle_temp_max: int = 0

The maximum usable nozzle temperature to use.

nozzle_temp_min class-attribute instance-attribute

Python
nozzle_temp_min: int = 0

The minimum usable nozzle temperature to use.

remaining_percent class-attribute instance-attribute

Python
remaining_percent: int = 0

The estimated remaining filament percentage.

slot_id class-attribute instance-attribute

Python
slot_id: int = -1

The slot # within the ams or the external tray id for this spool (0 to 23 or 254 to 255).

state class-attribute instance-attribute

Python
state: int = 0

The current state of the spool.

sub_brands class-attribute instance-attribute

Python
sub_brands: str = ''

For Bambu Lab filaments, specifies the specialization of the filament (Matte, Pro, Tough, etc).

total_length class-attribute instance-attribute

Python
total_length: int = 0

The total length of filament on the spool in millimeters.

tray_info_idx class-attribute instance-attribute

Python
tray_info_idx: str = ''

The underlying index for the selected filament in Bambu Studio.

tray_weight class-attribute instance-attribute

Python
tray_weight: int = 0

The weight of the filament spool in grams.

type class-attribute instance-attribute

Python
type: str = ''

The type of filament in the spool. Will either be read by the RFID tag or set on the Printer display.