master branch updates #19

Merged
alex_orid merged 32 commits from master into db-module 2021-04-09 20:43:03 +00:00
Showing only changes of commit e4f185678b - Show all commits

View File

@ -1,6 +1,9 @@
from time import sleep
import phue
from phue import Bridge
import random
import credentials
import config
@ -42,7 +45,16 @@ class Lights_Modules():
#b.set_group(18, "bri", 254) #This is max Brightness
#b.set_group(18, "on", True) #This is will turn ON
xy_result = self.rgb_to_xy(0,0,1) #This will take an rgb value and make it xy
b.set_group(18, "xy", xy_result) #This will make the lights in the group turn blue
b.set_group(16, "xy", xy_result) #This will make the lights in the group turn blue
# The Following will make a rave
for rave in range(2000):
rgb_r = random.random()
rgb_g = random.random()
rgb_b = random.random()
xy_result = self.rgb_to_xy(rgb_r, rgb_g, rgb_b) #This will take an rgb value and make it xy
b.set_group(16, "xy", xy_result)
sleep(0.5)
print("\n finished doing the things")