This commit is contained in:
quoije
2022-10-19 16:57:05 -04:00
parent 671b2393dc
commit 0d993489d4
+4 -4
View File
@@ -28,9 +28,9 @@ def checkLight():
haData = loads(haResponse.text) haData = loads(haResponse.text)
return haData['attributes']['rgb_color'] return haData['attributes']['rgb_color']
redRGB = checkLight()[0] redRGB = 0
greenRGB = checkLight()[1] greenRGB = 0
blueRGB = checkLight()[2] blueRGB = 0
def updateLight(): def updateLight():
global redRGB global redRGB
@@ -103,7 +103,7 @@ def sendGameEvent(kill_switch):
"value" : 100, "value" : 100,
"frame": { "frame": {
"zone-all-color": { "zone-all-color": {
"color": {"red": 0,"green": 0,"blue": 0} "color": {"red": redRGB,"green": greenRGB,"blue": blueRGB}
} }
} }
} }