This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

RGB Season lights
#2
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)
Reply


Messages In This Thread
RGB Season lights - by tomnord - 25.11.2020, 13:12
RE: RGB Season lights - by admin - 25.11.2020, 13:23
RE: RGB Season lights - by davidchispas - 25.11.2020, 16:51
RE: RGB Season lights - by admin - 27.11.2020, 08:35

Forum Jump: