Monitor your Bambu Labs 3D printer using CircuitPython
CircuitBambu requires the circuitpyhon-bambulabs library. This library returns the JSON information from your printer in an easy to use format allowing you to build a user interface for your microcontroller and display like the one below. To install via circup:
circup install bambulabs
qualia.py includes an example built on the circuitpython-bambulabs library.
You can connect to your Bambu Labs printer locally or via Bambu Cloud (recommended).
To access your credentials:
- Login to MakerWorld
- Open the
dev-tools(F12 in most browsers) and selectApplication > Cookies > https://makerworld.com - Copy the
tokenstring and save asBAMBU_ACCESS_TOKENinsettings.toml - Access /api/v1/design-user-service/my/preference and copy
uidasUSER_ID - Access /api/v1/iot-service/api/user/bind and copy your
dev_idasDEVICE_ID - Connect to the MQTT server with the following information.
URL:
mqtt://us.mqtt.bambulab.com:8883TLS: YES Authentication: required Username: u_{USER_ID} Password: {ACCESS_TOKEN}
Warning: The subscribe topics must be fully specified
device/{DEVICE_ID}/reportdevice/{DEVICE_ID}/request
Documentation adapted from a gist by syuchan10005 https://github.com/Doridian/OpenBambuAPI/blob/main/mqtt.md https://github.com/Doridian/OpenBambuAPI/blob/main/cloud-http.md
