Easy python API example

Ask a generic question about the usage of QLC+, not related to a particular operating system
Post Reply
RyeHeritage
Posts: 5
Joined: Sat Sep 14, 2024 3:03 pm
Real Name: John Warby

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
User avatar
mcallegari
Posts: 4710
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

[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
User avatar
mcallegari
Posts: 4710
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

There are no Python API. Where did you get that information from?
RyeHeritage
Posts: 5
Joined: Sat Sep 14, 2024 3:03 pm
Real Name: John Warby

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.
RyeHeritage
Posts: 5
Joined: Sat Sep 14, 2024 3:03 pm
Real Name: John Warby

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
User avatar
GGGss
Posts: 3052
Joined: Mon Sep 12, 2016 7:15 pm
Location: Belgium
Real Name: Fredje Gallon

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
All electric machines work on smoke... when the smoke escapes... they don't work anymore
RyeHeritage
Posts: 5
Joined: Sat Sep 14, 2024 3:03 pm
Real Name: John Warby

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
User avatar
GGGss
Posts: 3052
Joined: Mon Sep 12, 2016 7:15 pm
Location: Belgium
Real Name: Fredje Gallon

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.
All electric machines work on smoke... when the smoke escapes... they don't work anymore
RyeHeritage
Posts: 5
Joined: Sat Sep 14, 2024 3:03 pm
Real Name: John Warby

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.
Post Reply