123456
This commit is contained in:
+4
-4
@@ -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}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user