Awesome news for all you LED fans out there! The published source code as of now supports controlling a simple 4 channel (RGBW) Ledenet controller! The mobile app also has a rudimentary way of programming it, I'd love some feedback on that. What I implemented is the following:
Example: when you program a red color at 10 AM with a fade time of 30 minutes, the controller will start fading in at 9:30. At 10 AM, it will have reached the color you've programmed. If your next point in time is sunlight (full on) at 13:00 with a fade time of 2 hours, the output will remain red until 11 AM and then start fading to sunlight over the next two hours. Again, at 13:00 it will output the programmed value.
In my opinion this allows for a flexible way of programming yet it does not require a lot of effort. At least more convenient than the idiotic program I have now to control my TC420 🙂
Note: the "level" parameter at the moment does nothing, still need a good way to translate that into RGB without getting weird fades.
Each device has 4 outputs, but since you can link in multiple devices you can pretty much control an unlimited number of channels (enough for now, any way). The downside at the moment is that these have to be configured separately for the time being.
Another thing I need to think about is a way to preview a certain color or even the entire program, software is not ready for that yet.
- You add a "point in time" to the led controller. That point includes the time of day, RGBW color and a fade-in time in minutes.
- You can add as many points although they really should not overlap (this is untested at the moment).
- Using the points in time, the gateway will calculate the RGBW value for each minute of the day. It uses the fade-in time to calculate smooth transitions between two point. Obviously 5 minute fades from 0-255 will not be very smooth, I will probably increase the resolution in a future update.
Example: when you program a red color at 10 AM with a fade time of 30 minutes, the controller will start fading in at 9:30. At 10 AM, it will have reached the color you've programmed. If your next point in time is sunlight (full on) at 13:00 with a fade time of 2 hours, the output will remain red until 11 AM and then start fading to sunlight over the next two hours. Again, at 13:00 it will output the programmed value.
In my opinion this allows for a flexible way of programming yet it does not require a lot of effort. At least more convenient than the idiotic program I have now to control my TC420 🙂
Note: the "level" parameter at the moment does nothing, still need a good way to translate that into RGB without getting weird fades.
Each device has 4 outputs, but since you can link in multiple devices you can pretty much control an unlimited number of channels (enough for now, any way). The downside at the moment is that these have to be configured separately for the time being.
Another thing I need to think about is a way to preview a certain color or even the entire program, software is not ready for that yet.