MiraWeb Auto Connect

Pete Lalonde's icon

Hello,

Does anyone know a simple way to auto connect to a miraweb patch and avoid getting the connection prompt when you load the page in the browser?

With the port never changing and that I'm using a static IP I would like to avoid users having to see the connection prompt and possibly become alarmed by it.

Cheers!

Carlo Cattano's icon

Hmm. Im not sure if there is an option for this. in miraweb as it is . If you have time and depending on the project you could check xebra.js wich does virtually the same that miraweb does , but requires more effort .

Pete Lalonde's icon

I've worked with xebra.js however (unless there's something I'm missing) it can't display your patcher like MiraWeb does which would require me to rebuild the UI. Carlo; as you say it would require more effort, and a significant amount of more time. :-/

I can't completely rule it out though.

Carlo Cattano's icon

Exactly , you need to rebuild the UI then it becomes much longer procces. Try to ask in the github page or make a feature request , since your target makes sense for many people I guess including me . Is just not needed to have it there when connecting .
Another option would be to dig in the miraweb source and rebuild with your changes

Frans-Jan Wind's icon

Anyone yet succeeded in connecting directly? Preferably in full screen...

akee-rf's icon

a bit of a hack to avoid getting in the app.js
I add this to my index.html for autoconnect, the same way could be used for the fullscreen:

setTimeout(function() {

// Check if the button with specific class names exists

var button = document.querySelector('.mw-button.mw-button--style--primary.mw-button--size--md');

// If the button exists, simulate a click event

if (button) {

button.click();

}

}, 300);