Skip to content

Web api integration #6845

Description

@justibro

Is your feature request related to a problem? Please describe.
Not a problem but would be nice be able to use streamdecks and similar devices to quickly use labeled buttons to apply effects without having to remember all the keyboard commands. I thought since AI is creating more things it might be easier to implement.

Describe the solution you'd like
Primary use is companion by bitfocus to send api commands to xlights. This would require xlights to have a webport open, similar to fpp to accept commands. The api url could follow the key binding setup.

Examples:

localhost:3000/api/sequencer/effect/on/string/E_TEXTCTRL_Eff_On_End=100,E_TEXTCTRL_Eff_On_Start=100
localhost:3000/api/sequencer/applysetting/T_TEXTCTRL_Fadein=1.00,T_TEXTCTRL_Fadeout=1.00
localhost:3000/api/sequencer/effect_align_start

Basically all the types in keybindings can be after the "api" and which scope, and if there needs to be a string add a string.

This would apply to what is selected on screen.

Describe alternatives you've considered
In companion, I had it connected to virceo listener and that app so it will virtually press the keyboard shortcuts in xlights and I setup all the commands in there. Alot of time spent to configure and find non system shortcut keys to use to make alot of effects and apply effects

Additional context
Also a virtual button emulator in companion can be used. An ipad could have a giant button grid with labels and matched images of effects, or even just to have a grid of commands in a browser window on the same computer to use an effect selector.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions