diff --git a/html/spoolman.html b/html/spoolman.html index 49abe55..096885d 100644 --- a/html/spoolman.html +++ b/html/spoolman.html @@ -108,8 +108,9 @@ const code = document.getElementById('bambuCode').value; const autoSend = document.getElementById('autoSend').checked; const autoSendTime = document.getElementById('autoSendTime').value; + const printerModel = document.getElementById('printerModel').value; - fetch(`/api/bambu?bambu_ip=${encodeURIComponent(ip)}&bambu_serialnr=${encodeURIComponent(serial)}&bambu_accesscode=${encodeURIComponent(code)}&autoSend=${autoSend}&autoSendTime=${autoSendTime}`) + fetch(`/api/bambu?bambu_ip=${encodeURIComponent(ip)}&bambu_serialnr=${encodeURIComponent(serial)}&bambu_accesscode=${encodeURIComponent(code)}&autoSend=${autoSend}&autoSendTime=${autoSendTime}&printerModel=${encodeURIComponent(printerModel)}`) .then(response => response.json()) .then(data => { if (data.healthy) { @@ -139,6 +140,19 @@
If activated, FilaMan will automatically update the next filled tray with the last scanned and weighed spool.