Hi @Misterg Happy to see you again, thank you for your answer If you tested the BIG THING I will test it as if it were Christmas And as the proverb says with us "everything comes in time for who knows how to wait" Thank you very much and take care !
Question; if you have the doorsensor enabled in the firmware. When you run a job, it will succesfully trigger. But when youre not running anything, you wont see anything, but controls are locked and the console will state: [14:59:10] [ ] [MSG:Check Door] Would it be possible to have a json macro to trigger a popup either when the door is triggered (although that doesnt show in the console), or show a popup when that Check Door message is returned? (I dont always have the console in view, so i wont see it otherwise)
You should be able to yes,those statusses are available in that laststatus global object inside CONTROL (look at laststatus.comms.runStatus) https://github.com/gnea/grbl/wiki/Grbl-v1.1-Interface Here's how we parse it for the bottom bar, we do show door status there: https://github.com/OpenBuilds/OpenB...fa2d2ff082edb4c/app/js/websocket.js#L643-L664 (use laststatus in place of status if copying above)
Hey Guys, i have the following use case. I want to have only one PC controlling multiple Blackbox X32 in parallel. For that i found that normally the CONTROL Software only streams the data and i need to use the SD Card. Currently i have this: Code: let fileInput = document.createElement("input"); fileInput.type = "file"; fileInput.style.display = "none"; document.body.appendChild(fileInput); fileInput.addEventListener("change", async function() { if (fileInput.files.length === 0) { console.log("No file selected."); return; } let file = fileInput.files[0]; let formData = new FormData(); // Add the path parameter formData.append("path", "/"); // Add the file size (adjust key name as needed) formData.append(file.name + "S", file.size); // Append the file with correct field name and MIME type formData.append("myfiles", file, file.name); console.log(formData); try { let response = await fetch("http://192.168.0.56/sdfiles?t=" + Date.now(), { method: "POST", mode: "no-cors", headers: { "Accept": "*/*", "Origin": "http://192.168.0.56", "Referer": "http://192.168.0.56/", "Pragma": "no-cache", "Cache-Control": "no-cache" }, body: formData }); console.log(response); if (!response.ok) { throw new Error("Upload failed with status " + response.status); } let result = await response.text(); console.log("Upload successful:", result); alert("File uploaded successfully!"); } catch (error) { console.error("Error uploading file:", error); alert("File upload failed: " + error); } }); let uploadButton = document.createElement("button"); uploadButton.textContent = "Upload File to SD Card2"; uploadButton.addEventListener("click", function() { fileInput.click(); }); $("#controlBtnGrp").before(uploadButton); The biggest problem now is CORS as i get the opaque response from the WebUI Plugin. I found that the Web UI can be build with CORS Enabled, is there a reason why you ship the WEB UI in your Firmware without CORS, i think the risk is minimal as it is a local application and would enable easy access for more advanced usecases? Additionally the IP Address is hardcoded as you can see. I didn't find documentation about what variables might be usable. Is there a variable which already stores the ip address of the currently connected board, so i can easily use it here? Maybe is there a other way to upload data to the SD Card? Maybe such macros already exist but i couldn't find it? Thanks in advance
We just use the standard download from https://github.com/grblHAL/Plugin_WebUI when preinstalling, and certainly encourage you to build with any custom options you need and upgrade WebUI every so often too (it is seperate from firmware update) Not that we know of at this time. For us its mainly CONTROL-over-Telnet OR SD/WebUI - never really meant to be mixed together, so nothing like that already exists Should be in laststatus too https://github.com/OpenBuilds/OpenB...3097f467e5933861fa2d2ff082edb4c/index.js#L501
Hi Peter, thanks for your quick reply. As the Firmware Flashing Tool looks to be used for your Main firmware is there any chance that there is documentation on how to upload the new WebUI?
See https://github.com/grblHAL/Plugin_WebUI for instructions (upload latests index.gz via web interface)