Web API Animation

Ask a generic question about the usage of QLC+, not related to a particular operating system
Post Reply
MoKi
Posts: 6
Joined: Mon Apr 01, 2024 12:06 pm
Real Name:

Is there any documentation on retreiving information for the Animation through the API? The webaccess page has all the buttons I added inside the animation visualized, and I want to grab that information from the API. But I don't know how as that page is pre rendered and doesn't expose the actual API calls. The WebApi test page does not contain any information either.

I can control the values as I can set those by manually looking at the websocket traffic. But to automate this I need to actually retreive it first. Is there any information on this?
Yestalgia
Posts: 375
Joined: Thu Jun 17, 2021 9:31 am
Location: Australia
Real Name:
Contact:

Hi there,

I sponsored the animation widget being added to the web interface, sorry that I overlooked the documentation.

Here is a link to a GitHub issue which will track us adding the animation widget documentation to the Web API Test page:
https://github.com/mcallegari/qlcplus/issues/1559
User avatar
mcallegari
Posts: 4515
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

If you are a web developer, it's very easy to find it out yourself:
- create a VC with animation widget and preset buttons
- load the web page and hit F12
- select one animation widget preset button and you will find that it calls "wcMatrixPushButtonClicked"
- go to the source code and find this: https://github.com/mcallegari/qlcplus/b ... le.js#L707

So your syntax is

Code: Select all

animationWidgetId + "|MATRIX_PUSHBUTTON|" + controlID
MoKi
Posts: 6
Joined: Mon Apr 01, 2024 12:06 pm
Real Name:

mcallegari wrote: Wed May 01, 2024 7:49 am If you are a web developer, it's very easy to find it out yourself:
- create a VC with animation widget and preset buttons
- load the web page and hit F12
- select one animation widget preset button and you will find that it calls "wcMatrixPushButtonClicked"
- go to the source code and find this: https://github.com/mcallegari/qlcplus/b ... le.js#L707

So your syntax is

Code: Select all

animationWidgetId + "|MATRIX_PUSHBUTTON|" + controlID
Yes this is what I'm doing right now, but this requires manual work on it. I want to be able to load it like is done in the web interface. This way changes can be automatically reflected within my application without any manual steps. It should be possible as the web interface does this as well
MoKi
Posts: 6
Joined: Mon Apr 01, 2024 12:06 pm
Real Name:

Yestalgia wrote: Tue Apr 30, 2024 11:46 pm Hi there,

I sponsored the animation widget being added to the web interface, sorry that I overlooked the documentation.

Here is a link to a GitHub issue which will track us adding the animation widget documentation to the Web API Test page:
https://github.com/mcallegari/qlcplus/issues/1559
I'll keep an eye on that thanks! You described my issue perfectly.

Again, great job on your implementation! Any plans for the speed dial by any chance?
Post Reply