BambuLab integration for Spoolman.
This program will monitor a Bambulab printer and synchronize usage automatically to Spoolman. It does this by listening for prints to be started, parsing the gcode and estimating the filament usage per layer. As layers are completed, the usage for that layer will be pushed to Spoolman.
curl -o .env https://raw.githubusercontent.com/mrkirby153/bambu-spoolman/main/.env.example
curl -o docker-compose.yml https://raw.githubusercontent.com/mrkirby153/bambu-spoolman/main/docker-compose.ymlUpdate .env with the appropriate settings. See below for a list of configuration options.
Once the .env file is updated, start the app with docker compose up -d
Set the following environment variables:
SPOOLMAN_URL-- The base URL for your spoolman instance (i.e.http://localhost:7912)SPOOLMAN_VERIFY-- Set tofalseto disable SSL verification for spoolman requests (Useful for self-signed certificates)
PRINTER_IP-- The IP address of your printerPRINTER_SERIAL-- The serial number of your printerPRINTER_ACCESS_CODE-- The access code for your printerBAMBU_SPOOLMAN_CONFIG-- A directory to store the configuration fileSPOOLMAN_AUTO_CREATE_SPOOLS-- Create spools when detectedSPOOLMAN_AMS_FIELD_NAME-- Spoolman field to store which AMS a spool is inSPOOLMAN_AMS_TRAY_NAME-- Spoolman field to store which tray a spool is in
Once deployed, the web ui can be used to configure the mapping of AMS spool trays -> Spoolman spool ids. An initial connection to the printer is needed to determine the number of AMS systems attached.
- External spools
- LAN only prints
- Custom filament/layer change gcode (
M620is used to detect filament changes andM730is used to detect layer changes) - More than 1 AMS unit (I only have one, but this should support multiple AMS units)