Hi Mike, (and Andy),
On May 14, 2013, at 3:01 AM, Mike Wyer <
mi...@wyer.org> wrote:
> I've tried setting "/updates 1" both with and without a /workspace/{UID} prefix, with both TCP and UDP, and never once received an update from QLab. I've received replies to other messages ok, but not updates. How is it supposed to work?
>
> Relevant chunk of log:
> 2013-05-14 07:46:18.700 QLab[8570:303] [UDP socket
192.168.0.121:53001] sent OSC message: /workspaces
> 2013-05-14 07:46:18.701 QLab[8570:303] [UDP socket
192.168.0.121:53001] getting OSC reply: /reply/workspaces {"address":"/workspaces","status":"ok","data":[{"hasPasscode":false,"uniqueID":"B864B1FB-0070-46FE-AD80-29FFF4F94755","displayName":"launchpad.cues"}]}
> 2013-05-14 07:46:18.701 QLab[8570:303] [UDP socket
192.168.0.121:53001] sent OSC message: /workspace/B864B1FB-0070-46FE-AD80-29FFF4F94755/updates 1
> 2013-05-14 07:46:18.702 QLab[8570:303] [UDP socket
192.168.0.121:53001] sent OSC message: /thump
> 2013-05-14 07:46:18.703 QLab[8570:303] [UDP socket
192.168.0.121:53001] getting OSC reply: /reply/workspace/B864B1FB-0070-46FE-AD80-29FFF4F94755/thump {"status":"ok","data":"thump","workspace_id":"B864B1FB-0070-46FE-AD80-29FFF4F94755","address":"/workspace/B864B1FB-0070-46FE-AD80-29FFF4F94755/thump"}
>
> And then I can do anything in QLab, like launch a cue, tweak a setting, delete a cue, and never a peep from the OSC API about anything being updated.
The message are being sent, but they weren't being logged. I've just added logging so the update messages will also appear in the console.
> I'm prepared to believe I'm doing it wrong, or expecting something it doesn't support, but the OSC API docs are pretty vague: set /updates to true and you will receive push notifications of cue updates. And that's pretty much it.
>
> Incidentally, the log messages are a bit confusing as QLab *received" (rather than "sent") the /workspaces message, and *sent* the reply (rather than "getting").
This is accurate. The text [UDP socket
192.168.0.121:53001] indicates the "subject" of the sentence, so that socket did indeed send and get the listed message.
On May 14, 2013, at 7:31 AM, Andy Leviss <An...@DucksEcho.com> wrote:
>
> (I still don't really like this, and think it somewhat defeats the purpose of subscribing for updates, FWIW. Worst case, burden should be on QLab to ask if I'm still listening, and way less frequently than 20s.)
Makes sense, I'll look in to changing this.
On May 14, 2013, at 8:12 AM, Mike Wyer <
mi...@wyer.org> wrote:
> I think part of the problem is that the docs don't say what to expect- which events generate an update, what an update message looks like, etc.
Events are generated when state changes; usually something like editing a cue. So, if you change the name of a cue, you'll get an update notification for that cue. If the playback position of the cue list changes, you'd get a specific update just for that.
The docs describe exactly what an update message looks like:
http://figure53.com/qlab/documentation/osc-api/#update-format
In time we may make these more granular, but they're enough for a lot as-is. (The QLab Remote iPad app uses this API.)
Cheers,
Chris