Skip to content

Create led.php#23

Open
BearFather wants to merge 3 commits intobeville:masterfrom
BearFather:patch-1
Open

Create led.php#23
BearFather wants to merge 3 commits intobeville:masterfrom
BearFather:patch-1

Conversation

@BearFather
Copy link

I have made a simple PHP file to work with this python script. Basically gives you a simple web API that can be used to remotely activate it.
IE: led.php?led=on
led options:
on
off
warm (sets to warm color at 100% unless level is set)
[color] (sets to that color)
jump [colors] (Does custom pattern jump)
gradual [colors] (Does custom pattern gradual)
strobe [colors] (Does custom pattern strobe)

I have made a simple PHP file to work with this python script.  Basically gives you a simple web API that can be used to remotely activate it.
IE:  led.php?led=on
led options:
on
off
warm <level> (sets to warm color at 100% unless level is set)
[color] (sets to that color)
jump <speed> [colors] (Does custom pattern jump)
gradual <speed> [colors] (Does custom pattern gradual)
strobe <speed> [colors] (Does custom pattern strobe)
Added a option to cycle light on and off.
Have it send "on" command when changing modes.
Added more output and debug option.
beville pushed a commit that referenced this pull request Mar 4, 2018
Some devices require an 8-byte protocol (currently referred to as Ledenet),
while some require a 7-byte protocol but don't set the rgb/white flag. A
subset of the latter type support true rgbw operation. Merge the command
sending into a single function that handles this, and set appropriate flags
when determining the initial device state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant