Skip to content

Accept the channel-output configuration xLights uploads #27

Description

@dabeckham

Matrix width and height have to be matched by hand to the model in Layout. Get them wrong and
the channel data does not line up.

xLights already sends the right numbers. FPP::UploadVirtualMatrixOutputs derives the size from the
MatrixModel — NodesPerString x GetNumStrings, swapped when the model is vertical — and POSTs
width, height, startChannel, channelCount and layout to
/api/channel/output/co-other.

We serve GET on that path and ignore POST, so those numbers arrive and vanish.

To do: accept the POST and feed width, height and startChannel through the same config
merge every other route uses. The model still has to be assigned to the controller's virtual matrix
port; the capability entry allows one, which is all this device has.

That would remove the hand-matching entirely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestprotocolMultiSync, DDP or the FPP HTTP API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions