QLAB - HTML5 COMMAND

878 views
Skip to first unread message

Luca Sarzi Sartori

unread,
Sep 7, 2018, 3:11:16 AM9/7/18
to QLab
Hello everybody


Two simple questions:

1) I’m using Qlab in conjunction with the UI24R mixer to run a small show where Video, Lights, Audio contributions and Click track are managed by QLAB. Both audio contributions and Click audio track are sent to the Ui24R via USB. Now here’s the question: Is there any chance to have UI24 Internal Snippets (songs scene presets) triggered via Qlab on demand? The soundcraft seems to accept this command via HTML5. Is there a sort of command that can be sent from q lab to the mixer ?

2) In audition mode light cues are not responding while they run perfectly in show mode. Is there anything I'm missing ? If I want to use the tool record cue sequence while in audition mode to record light cues sequence i'm going blindly, not seeing the result.

Thanks for your support

micpool

unread,
Sep 7, 2018, 8:20:51 AM9/7/18
to QLab
re 2 this is the designed behaviour see this thread


re 1

I don't have a Soundcraft to hand but it would seem to have a full built in web server. Panasonic projectors are something we routinely control in QLab using their  built in web server so you may be able to adapt this to do what you want. Obviously, you will either need written documentation of what html is being sent, or find out what it is using a utility.

Basically you would substitute  the first section of the script with names and valid http for your mixer 

Then in section 2 alter everything to refer to your mixer and select one of the mixer commands from section 1

and then the last bi,t which basically gets QLab to appear to the device as if it was a web browser should work 'as is', if you incorporate any user name or password requirements.


set powerOn to "/cgi-bin/power_on.cgi"
set powerOff to "/cgi-bin/power_off.cgi"
set shutterClose to "/cgi-bin/proj_ctl.cgi?key=shutter_on&lang=e&osd=on"
set shutterOpen to "/cgi-bin/proj_ctl.cgi?key=shutter_off&lang=e&osd=on"





set theServer to "192.168.0.8" -- set this to the ip address of the projector
set theUsername to "admin1" -- set this to the username for the projector
set thePassword to "panasonic" --set this to the password for the projector
set theCommand to shutterOpen --set the command required, option are, powerOn, powerOff, shutterClose, shutterOpen





set theProtocol to "http" -- vs https
set theUserPass to theUsername & ":" & thePassword -- your Indigo remote access username/password
set theURL to theProtocol & "://" & theUserPass & "@" & theServer & theCommand
set theFinalURL to "\"" & theURL & "\""
try
with timeout of 1 second
do shell script "/usr/bin/curl" & " " & "--connect-timeout" & " " & "1" & " " & theFinalURL
end timeout
end try


It may well be more complicated than this, but this is where I would start.

Mic

Luca Sarzi Sartori

unread,
Sep 7, 2018, 8:41:35 AM9/7/18
to QLab
Thanks Mic... guess I'll have my next 10 nights booked... :-) 

Great support!

Luca Sarzi Sartori

unread,
Feb 22, 2019, 2:59:49 AM2/22/19
to QLab

Hello Mic


Here’s the result of my poor trials


Using a web socket I intercepted the command to load snippets on the Soundcraft UI24R. If I send a message through a web socket to the mixer it is recognized and the changing takes place.


This is the command sent exactly to the mixer with the syntax used to change the snippets


3:::LOADSNAPSHOT^<showname>^<snapshotname>


This said I got back to Qlab and followed your hint by using a network cue and placing the string here below using both UDP or OSC but it didn’t work. 


set theServer to "10.10.1.1”

set theUsername to "admin"

set thePassword to “”

set theCommand to 3:::LOADSNAPSHOT^MYSHOW^ACT1

set theProtocol to "http" -- vs https

set theUserPass to theUsername & ":" & thePassword

set theURL to theProtocol & "://" & theUserPass & "@" & theServer & theCommand

set theFinalURL to "\"" & theURL & "\""

try with timeout of 1 second

do shell script "/usr/bin/curl" & " " & "--connect-timeout" & " " & "1" & " " & theFinalURL

end timeout

end try


The string was copied in the text field of the network cue exactly as you see it and mac was linked to the mixer via USB at the DAW port. The IP address of the mixer is - as you saw 10.10.1.1 - while I could not intercept the port.


Surely I’m missing something since I’m a newbie, and I would greatly appreciate your help.


Luca



Il giorno venerdì 7 settembre 2018 14:20:51 UTC+2, micpool ha scritto:

micpool

unread,
Feb 22, 2019, 4:46:00 AM2/22/19
to QLab
This was unlikely to work as most of the script is still the specific format the Panasonic projector in the example requires, and not what your mixer needs.

Without a UI 24 in front of me it’s unlikely i can guess what the Full URL is to include your snippets in, however the following may be helpful.

Perhaps it doesn’t need a user name. If it does it’s unlikely to be admin

If it needs a password its probably scuiwlan

Try using ui-mixer.io as the server.

If you connect a web browser to the mixer,what URL does it send when you change the preset from the webserver GUI?

But to be honest, without a mixer and web broser in front of me, I’m pretty much poking around in the dark.

Mic

Luca Sarzi Sartori

unread,
Feb 22, 2019, 5:17:39 AM2/22/19
to QLab
Thanks, Mic
I'll investigate further.

Jouni

unread,
Mar 31, 2019, 5:00:11 AM3/31/19
to QLab
Any luck in getting this to work?
Reply all
Reply to author
Forward
0 new messages