Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)