Page 1 of 1
Easy python API example
Posted: Sat Sep 14, 2024 3:32 pm
by RyeHeritage
I'm doing some work for a local charity and need help understanding the python api to QLC+
My target is to connect a websocket from a RaspberryPi, load a named project and start/stop a selected show.
I can see the html example loads the project using a POST and form data, but am at a loss in doing the same in python.
Plus the start/stop bit is beyond me.
Any help will be greatly appreciated
Cheers
John
Re: Easy python API example
Posted: Sat Sep 14, 2024 3:37 pm
by mcallegari
[moderator] please read the "community" section description before posting. It's definitely the wrong place to post a support request. Moved this post to the proper area
Re: Easy python API example
Posted: Sat Sep 14, 2024 3:37 pm
by mcallegari
There are no Python API. Where did you get that information from?
Re: Easy python API example
Posted: Sun Sep 15, 2024 7:09 am
by RyeHeritage
My choice of title is misleading, my apologies.
I found an example of sending web api commands directly from python plus the html example.
My current project uses headless raspberry pi plus the UI calls for minimum end user knowledge, as in 1 or 2 buttons at most. Our volunteers are not tech savvy.
Sorry about the misdirection.
Re: Easy python API example
Posted: Sun Sep 22, 2024 9:56 am
by RyeHeritage
Hi again
I'm still hoping there is a python example of how to load and run a show.
Does anyone else use a Raspberry Pi to remotely control QLC+ ?
Fingers crossed
Thanks
Re: Easy python API example
Posted: Mon Sep 23, 2024 7:32 am
by GGGss
I always use the web interface to control a show with QLC+ running on a Pi... This is not what you are asking for.
Loading and running should be straightforward. Open QLC+ with startup parameters. With the parameters, you can Load a show and go directly into operating mode, which has an auto-run function upon start (green flag). Then, you can use many commands to influence the running show. I'm sure there is an OLA or OSC module that can be imported into your Python environment.
Parameters:
https://docs.qlcplus.org/v4/advanced/co ... parameters
Re: Easy python API example
Posted: Fri Sep 27, 2024 8:15 am
by RyeHeritage
Thanks for the reply.
I see you have QLC running on pi. Which model pi are you using?
Also, did you use the ready made image or DIY install?
Some early notes mention limited functionality when using a pi.
What are your findings?
Thanks
John
Re: Easy python API example
Posted: Mon Sep 30, 2024 6:51 am
by GGGss
The best experience is with a 4-model and a small contribution, so you can get hold of the precompiled image.
The limited functionality merely comes from the lack of processing power, so the front end maybe not as fluent as a laptop or desktop computer. It is feasible to program a show with a Pi.
Re: Easy python API example
Posted: Tue Oct 01, 2024 5:20 pm
by RyeHeritage
Hi
Thanks for the reply.
I now have qlc+ running on a pi 5 from a downloaded image.
I've yet to take full control from a websocket client.