API Run/Stop Function

Ask a generic question about the usage of QLC+, not related to a particular operating system
Post Reply
markp
Posts: 3
Joined: Sat Oct 13, 2018 8:45 am
Real Name: Mark P

I know I can query for a list of functions (scenes, EFX, etc) and their respective statuses, but how do I get one to run/stop without using a VC widget?
I can't find any method to directly "set" a function's status in the test api example page.
User avatar
mcallegari
Posts: 4712
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Web APIs have been written for the web interface, not quite to "do everything you want with QLC+".
Perhaps you can explain your usage case and why you need such APIs ?
markp
Posts: 3
Joined: Sat Oct 13, 2018 8:45 am
Real Name: Mark P

Ah, OK. I have an external application which I'd like to trigger lighting scenes/efx when certain events occur - it's for an interactive game, and I'd like the moving heads to run some pre-defined routines.

Alternatively I'm not sure if OSC can provide this functionality? The app is mostly written in Python so there is probably a library for this.
User avatar
mcallegari
Posts: 4712
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Just create some functions and assign each one of them to a dedicated button in the Virtual console.
The you can trigger buttons on/off via web API.
markp
Posts: 3
Joined: Sat Oct 13, 2018 8:45 am
Real Name: Mark P

OK, will do. Didn't realise the API was geared around the VC - the methods to "getFunctions" had me thinking there must be a way to launch them too.
Post Reply