Configuration¶
This page covers the runtime settings used by the SpoolBuddy daemon and kiosk.
Backend Connection¶
SpoolBuddy daemon reads its connection settings from:
/opt/bambuddy/spoolbuddy/.env(default install path)
Minimum configuration:
Optional:
After changes:
API key source
Create API keys in Bambuddy → Settings → API Keys.
Kiosk Access and Auth¶
The kiosk runs at:
/spoolbuddy
Installer-generated kiosk URL usually includes a token:
/spoolbuddy?token=bb_xxx
On first load, Bambuddy stores that token and removes it from the visible URL.
NFC Behavior¶
SpoolBuddy supports:
- Bambu RFID tags (MIFARE Classic; reads tray/material metadata)
- NTAG tags (
NTAG213/215/216) for writable custom tags
Tag Writing¶
Tag writing is available in kiosk UI at:
/spoolbuddy/write-tag
Current write format:
- OpenTag3D-compatible NDEF payload (
application/opentag3d)
Scale and Calibration¶
Scale settings are managed from kiosk Settings:
Scaletab for tare/calibrationDisplaytab for brightness + blank timeout
Calibration flow:
- Remove all weight and run Set Zero / Tare
- Place known reference weight
- Run Calibrate
Daemon receives and applies calibration via heartbeat, then persists through Bambuddy.
Use a 1–2 kg known weight for calibration
For a 5 kg load cell, calibration is more stable with heavier reference weights (about 20–40% of full scale).
Device Sync Model¶
The daemon:
- registers device capabilities (NFC, scale, backlight)
- sends heartbeat periodically
- pushes tag scans and scale readings
- receives pending commands (for example
tare,write_tag)
If heartbeat stops, device is marked offline after timeout.
AMS Behavior Clarification¶
SpoolBuddy does not physically switch spools.
It configures AMS slots with filament/K-profile information and works with Bambuddy's AMS/inventory workflows.
Updating¶
For normal Pi updates, a full reinstall is usually not required.
Typical flow:
If your local checkout is outdated, update it first, then run the same restart.
Troubleshooting¶
Device stays offline¶
- Verify
SPOOLBUDDY_BACKEND_URLandSPOOLBUDDY_API_KEY. - Check service logs:
NFC not detected¶
- Confirm PN5180 wiring and SPI enablement
- Confirm
dtoverlay=spi0-0cs. - Run:
Scale shows no readings¶
- Confirm NAU7802 on I2C bus 0:
- Run:
Scale calibration is inconsistent¶
- Ensure the RFID reader is not mechanically/electrically interfering with the scale platform.
- If needed, relocate RFID placement away from the weigh path and recalibrate.
Brightness controls do nothing¶
- HDMI displays are dimmed by frontend CSS
- Physical backlight writes require a DSI backlight device and
videogroup permissions
Display goes blank when connecting touch¶
- This can indicate display-side power/ground issues (for example ground loop-like behavior).
- Test with a different Pi/power source and re-check cabling and adapter orientation.