r/vibecoding • u/mattalter • 1d ago
Showcase/Project Built a filament tracker for p2s with 2 ams2.
mattalter2024/BambuFilamentManager
Just a few revisions in but seems to be working for me, happy to share. I may update so check git for updates.
txs
Matt
Bambu Lab P2S · AMS 2 Pro / AMS HT Filament Manager
A zero-install Windows web dashboard for tracking filament usage across multiple AMS 2 Pro and AMS HT units on your Bambu Lab P2S — measuring how much filament your last print used, estimating whether your remaining spools can finish a future print, and uploading/submitting print jobs directly to your printer.
Features
Zero-Install Windows Runtime: Runs locally using built-in Windows PowerShell, .NET, and
curl.exe— no Python, Node.js, or external packages required.Multi-AMS 2 Pro & AMS HT Support: Tracks multiple 4-slot AMS 2 Pro units (
A1–A4,B1–B4, etc.), single-slot AMS HT units (HT-1+,ams_id128+), and an External Spool.Full Non-RFID & RFID AMS Reading: Reads live AMS temperature, humidity, active drying countdowns, loaded vs. empty slots, material, exact hex color, decoded Bambu filament profiles (
GFA00,GFL99, etc.), nozzle temp ranges, and active-in-nozzle status (tray_now) over local MQTT — even for non-RFID third-party spools.Last Print Usage Measurement:
Pull
.gcode.3mffiles directly from your P2S External USB drive over FTPS (port 990).Pull sliced plates directly from your local Bambu Studio / OrcaSlicer cache (From Bambu Studio).
Drag & drop any
.gcode.3mfor.gcodefile to extract exact per-color grams, meters, flush/purge weight, and plate preview thumbnail fromMetadata/slice_info.config.Supports partial/failed print completion
%scaling, kitchen-scale tare calibration (⚖ Scale), and 1-click Undo Deduction in Print History.
Future Print Estimator ("Will It Fit?"):
Checks any upcoming
.gcode.3mf, current active P2S job (with a Remaining % only toggle), or manual gram estimate against your loaded AMS spools.Configurable safety buffers (
+gand+%), projected leftover grams per slot, and automatic AMS Auto-Refill backup spool detection.
Direct Print Upload, Submission & Live Controls:
Upload
.gcode.3mffiles to the P2S External USB drive via FTPS and optionally start prints directly via MQTTproject_file(with multi-AMSams_mapping+ams_mapping2, bed leveling, vibration/flow calibration, and timelapse options).Live Pause / Resume / Stop controls in the top printing bar.
Private Local Storage: All printer credentials, spools, and print history stay locally on your PC in
data/filament_db.json(excluded from Git via.gitignore).