API documentation?

Post Reply
middi
Posts: 2
Joined: Sun Apr 30, 2017 12:52 pm
Real Name: Middi

API documentation?

Post by middi » Sun Apr 30, 2017 1:08 pm

Hi there,
I love QLCplus for controlling my RGB LED-Panel (4x Traxon 64PXLwash, makes 8x32 matrix).
Great work, a big thanks to the developpers!
Is there an API for changing values of the RGBMatrix function?
I want to do a script (python) which automatically changes the color-palettes or the presetpattern in use from while to while.
Is there an API or will I have to modify the sources and compile by myself (linux) for creating an API by myself?
Thank you all!
Kind regards, Middi.

User avatar
mcallegari
Posts: 1890
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: API documentation?

Post by mcallegari » Mon May 01, 2017 9:42 am

Hi, RGB Matrix scripts are written in JavaScript.
Once they are loaded, you cannot change them at runtime.

API are pretty straight forward. Start from here: https://github.com/mcallegari/qlcplus/t ... rgbscripts
and study empty.js. You can test a script with devtool.html.

middi
Posts: 2
Joined: Sun Apr 30, 2017 12:52 pm
Real Name: Middi

Re: API documentation?

Post by middi » Mon May 01, 2017 8:10 pm

Thank you, I will study it.

User avatar
MontyZuma
Posts: 30
Joined: Sat Apr 01, 2017 11:11 am
Real Name: Klaus Muth

Re: API documentation?

Post by MontyZuma » Thu May 04, 2017 8:09 am

Whoops! Now that's intresting!
I totally missed the page on RGB Script API in the integrated manual.

Thanks for the hint!

klaus

Post Reply