Miraweb Multi-user questions: HTML Prompts (for "login" IDs)/Security/etc...

Gmix's icon

Hi,

For an upcoming installation at the Natl. Wildlife Museum here in Jackson Hole, we want to invite users to sign into an interactive lighting/projection/crowd-DJ crazy AV experience.

We like the open, cross-platform, ease of use that Miraweb provides over MIRA, but are curious about overloading the servers, who has access to what Mira.frames, etc...

First, is there a way to create HTML prompt messages for users to "login" with an ID? We may or may not implement a cross-check, ID/password system, but at the very least it would be helpful for first time users to be automatically presented with a familiar HTML style prompt immediately upon entering in the IP address into their browser.

Second, can you limit certain Mira.frame tabs so only "admin" users can see and/or make changes to some master settings that you don't want the general public to see?

Cheers,
G

Carlo Cattano's icon

Hi there . For this you will need to use the father of miraweb , Xebra.js and get to code in node.js and Html with some javascript.
Users id are assigned automatically to the devices , see mira.status -getconnections .
I did somthing similar . Made a node.js server that when the user connects is routed to an index.html that contains xebra.js scripts , and server side I make a list of users in an dynamic array so I can assign different tasks to different users

Florian Demmer's icon

Hey! That sounds like fun!

Out of the box MiraWeb is sort of a Mira APP approach realised with the use of Xebra.js. If you'd like to customize that behaviour there are basically two options:

* custom MiraWeb fork (the JS part is MIT licensed)
* custom UI based on Xebra.js (as suggested by Carlo)

depending on your needs and planned work for the User experience/UI one or the other might be a better choice I guess. If you need some pointers for the MiraWeb codebase to evaluate a fork approach let me know and I'm happy to help.

In terms of capabilities for a mass dj thing: MiraWeb does have a limit in terms of users at the same time, which is currently 64. Maybe worth having in mind?

Anyhow, the project seems great! Let us know how you end up approaching it.

Thanks,
Florian

Jason Charney's icon

Hi Carlo Cattano, can you give more information about how you did that? I can implement a list list in a node server using socket.io, but I'm curious if there's a way to address individual client messages from Max (like with mira.channel), since mira.status can spit out the ids into Max too...if I don't have to middleman through the server page that would be fantastic...