Logic Machine Forum
RGB Season lights - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: RGB Season lights (/showthread.php?tid=3021)



RGB Season lights - tomnord - 25.11.2020

Hello. Looking for a way to slowly change colors in the rbg spectre.

The lightdesigner has spesified changing lights as shown in attchment:



I'm hoping/assuming someone has done this before?


RE: RGB Season lights - admin - 25.11.2020

Create a table with RGB values for each day of the year, then create a scheduled script that will change the color once a day:
Code:
colors = {
  [1]  = 0xFF5700,
  ...
  [366] = 0xFF00FF,
}
yday = os.date('*t').yday -- day of the year from 1 to 366
color = colors[ yday ]
grp.write('1/1/1', color)



RE: RGB Season lights - davidchispas - 25.11.2020

Hello, I want to do something similar but every 'x' minutes. Christmas is approaching and customers are already beginning to claim these things.

Color changes can be progressively faded? so that the change is not noticed so fast.


RE: RGB Season lights - admin - 27.11.2020

This script can be adapted for RGB use:
https://forum.logicmachine.net/showthread.php?tid=1529&pid=14257#pid14257

Convert R/G/B to a single RGB value:
Code:
rgb = r * 0x10000 + g * 0x100 + b

Fading should be set-up on the end device.