Cue feedback from Qlab

423 views
Skip to first unread message

wa...@c3productions.co.uk

unread,
Jan 13, 2016, 10:31:02 AM1/13/16
to QLab
Hey All,
I have searched and searched... is there anyway to get the remaining time left on a cue or group of cues in any format remotely?

For example, I want to display the time remaining of a unique cue OR group at a different location on the network, prefer cross platform option... (not the current cue)

Chris Ashworth

unread,
Jan 13, 2016, 1:46:17 PM1/13/16
to wa...@c3productions.co.uk, ql...@googlegroups.com
Hi there,

Group cues don’t have an inherent duration, so there’s nothing to get there.

For cues that do have a duration you could query the elapsed time in various ways. When you say "cross platform" and "across a network", that likely implies doing something with OSC, so you’d be writing an application that connects using the OSC protocol.  Is that the level of detail you’re expecting? Or are you hoping for an existing application that you’d run, type in the cue number, and view information about the given cue?

-C

wa...@c3productions.co.uk

unread,
Jan 14, 2016, 8:10:16 AM1/14/16
to QLab, wa...@c3productions.co.uk
Thanks for the reply Chris, I was hoping for an existing application but happy to learn to make an OSC app, could be fun. What would you suggest for this? Java?
 Is there any performance issues with qlab if an app is requesting the information for a cue every second?

Also correct me if i am wrong but I cannot see in the API a time remaining command... so, after playing a bit and seeing the json replies. I figure i would have to do something like 
/cue/{number}/duration store it as var within the app, then use /cue/{number}/percentActionElapsed or /cue/{number}/actionElapsed to do some basic maths to figure out the remaining time to display.
Am i on the right track?

Thanks!

Chris Ashworth

unread,
Jan 14, 2016, 9:46:38 AM1/14/16
to wa...@c3productions.co.uk, ql...@googlegroups.com
Hi there,

I’ve never used Java so I can’t speak much to it, other than to say I wouldn’t recommend it if you’re trying to build something that runs on a Mac.

Are you able to share more about what situation you’re in—what problem you’re trying to solve?

And yes, it would require a calculation to get the time remaining. Something like (in pseudo-code):

remaining = cue.duration * ( 1 - cue.percentActionElapsed )

Best,
C
--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
 
Follow Figure 53 on Twitter: http://twitter.com/Figure53
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/d1252625-f12f-4b7b-a705-5df7490002f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

micpool

unread,
Jan 14, 2016, 10:36:42 AM1/14/16
to QLab, wa...@c3productions.co.uk
OK So this doesn't work and it's not cross platform but here's what my idea was:

Enable remote apple events on the remote mac

Open QDisplay on the remote mac (download from http://figure53.com/downloads/QDisplay.zip if you don't have it)

In QLab on the main machine  make a script cue

set remMachine to "eppc://username:password@remoteIP" --will look like "joebloggs:my c...@10.0.1.43"

using terms from application "QDisplay"

tell application "QDisplay" of machine remMachine

set message to "Message1"

set timeRemaining to 10

end tell

end using terms from



It can't be far off a solution because this DOES work (from Doug's AppleScripts for iTunes)

set remMachine to "eppc://username:password@remoteIP" --will look like "joebloggs:my c...@10.0.1.43"

using terms from application "iTunes"

tell application "itunes" of machine remMachine

playpause

end tell

end using terms from


Anyone know why?


Mic



wa...@c3productions.co.uk

unread,
Jan 20, 2016, 11:34:24 AM1/20/16
to QLab, wa...@c3productions.co.uk
Sorry for the late reply.
So basicly, this job could have quite the complex qlab file and whoever is operating may not be the the most clued up on a complex qcue lab file and only needs access to some cues... so i need a custom interface with feedback that makes it even easier to use, and to add ...the spot they are controlling from is not near the mac...

I have a web browser test working, with go, stop and pause commands and displaying the time remaining of said cue.
Using a python script to get the info needed from qlab, then storing the json string in a text file which using javascript displays the remaining time... it won't let me post a video of it working for some reason .. still got along way to go to make it stable and quick but it's a start... thanks for your help... I will keep you updated..

~Wayde

Chris Ashworth

unread,
Jan 20, 2016, 11:43:34 AM1/20/16
to wa...@c3productions.co.uk, ql...@googlegroups.com
Ah, interesting stuff.

My teammate Adam did some experiments a couple of years back controlling QLab via a web app.  In case they are useful, you can find those experiments here:

Chris Ashworth

unread,
Jan 20, 2016, 11:52:09 AM1/20/16
to wa...@c3productions.co.uk, ql...@googlegroups.com
There’s also this, although it’s not cross-platform, and is also more of an experiment/proof-of-concept than a finished project:

wa...@c3productions.co.uk

unread,
Jan 20, 2016, 5:49:31 PM1/20/16
to QLab, wa...@c3productions.co.uk
So, after a bit of playing tonight i got the following http://we.tl/IjGlfiUSRV (couldnt attached a video for some reason) , it still lags and I crashed qlab a number of times trying things... but its getting there... 
My main problem is that the only way to get "/cue/{cue number}/actionElapsed" is to keep asking for it from qlab... and if you keep asking for it without a "break" of say 0.5sec or more it crashes or locks up.  Any way qlab outputs this data in another way?

Obviously it isn't going look like that as final product, its just a quick test page
Enjoy,

~Wayde

Chris Ashworth

unread,
Jan 21, 2016, 9:50:29 AM1/21/16
to ql...@googlegroups.com, wa...@c3productions.co.uk
Hi Wayde,

That’s correct, currently the only option for retrieving the information is to poll.  There is not currently a way to subscribe for push updates, although that’s been requested.

I’m pretty sure that you should be able to request information back more often than every 0.5 seconds though. There is a limit, but it’s much faster than that.

-C
Reply all
Reply to author
Forward
0 new messages