Server migration complete, Welcome to version 2.1.1



Welcome, Guest.
Please login or register.
Forgot your password?

+-Site Stats

Total Members: 15931
Latest: pavit66767
New This Month: 0
New This Week: 0
New Today: 0
Total Posts: 129789
Total Topics: 16011
Most Online Today: 153
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 3
Guests: 117
Total: 120

use api to turn on all lights to a specific color

Started by calioptrix, December 09, 2020, 08:00:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


the xschedule webpage has a test plugin that can turn all the lights on a certain color. How do I replicate this functionality with http get/post requests?


Create a Pixel Overlay Model which includes channels for your whole display and then use the REST API to call the FPP Commands to turn the model on/off, set the color, etc..

See http://yourfppip/apihelp.php and http://yourfppip/api/commands for more info on usage.


I've tried the fill command but I'm not getting any lights. I have one strand of 50 lights. Start channel is 1.

Here's the output of /api/models


using apihelp.php, I tried to send a fill put command but nothing happens.

PUT /api/api/overlays/model/Test1/fill
{  "RGB": [    255,    0,    0  ] }
  "Status": "OK",
  "Message": ""

I've tried with fppd in player (standalone) mode and bridge mode.

If I try the pixel command /api/overlays/model/Test1/pixel

{  "X": 1,  "Y": 1,  "RGB": [    255,    0,    0  ] }

I get a proxy error?

<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.


Here are some example usages:

# enable the P10Matrix overlay model
curl -X PUT -d '{ "State": 1 }'
# fill the P10Matrix model with red
curl -X PUT -d '{ "RGB": [ 255, 0, 0 ] }'
# clear the P10Matrix model by filling it with black
curl -X PUT -d '{ "RGB": [ 0, 0, 0 ] }'
# disable the P10Matrix model
curl -X PUT -d '{ "State": 0 }'

Support FPP

+- Recent Topics

FPP 7.2 Released! by dkulp
Today at 12:54:32 PM

PI cannot find my F48 by Poporacer
Today at 12:21:45 PM

Text on Matrix by Poporacer
Today at 11:35:04 AM

State of falcon pi cap? by K-State Fan
Today at 10:52:49 AM

FPP OLED Display by Poporacer
October 03, 2023, 10:10:56 PM

Colorlight card not responding to FPP by Poporacer
October 03, 2023, 10:06:06 PM

Remote Player Audio Playback by tetleytealeaf
October 03, 2023, 08:56:29 PM

FPP Volume Set not scheduling by tetleytealeaf
October 03, 2023, 08:48:45 PM

Player on status page doesn't keep focus on top of the page by darylc
October 03, 2023, 08:00:15 PM

How to get deep purple color on pixels? by jchuchla
October 02, 2023, 09:29:03 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod