Web Console Modification

Archive of the non-categorized posts related to the QLC+ technical support.
Please do not create new threads here, instead, use the categories above !
Post Reply
everythingDaniel

Wanted to share my latest project. The web access is all fine and dandy, but lots of it is unneeded, and still kinda buggy for every day use. My virtual console is good for MY uses, RGB mixing and such, It's not good for my girlfriend. My DMX setup controls my bedroom lights, 2 16 channel dimmer packs and 4 El Chepo RGB LED floods.

So I had an old iPhone around and decided to see what I could come up with.

http://pastebin.com/mEWWLP3T

That is my iPhone console, Pulled the JS from the real QLC and interfaced my own layout. Websocket kept closing about every 45 seconds, so I put a loop at the end for every 30 seconds close it and re open it again.


Script is a little messy, I do not know the first thing about Javascript, So did some quick learning, and threw it together real quick, Been working fine on iPhone in Chrome for a day and a half now, Hasn't dropped the connection once. Browser is always open, mounted like a light switch from the common on/off presets.


Any JS improvements or ideas I might have missed? I'm certain the Websocket loop is not the best way, but it does work.

--DL
Post Reply