i silly mannn
This commit is contained in:
@@ -50,6 +50,7 @@ class GoveeApi:
|
||||
}
|
||||
}
|
||||
|
||||
print(json.dumps(payload, indent=4))
|
||||
req = requests.post(GOVEE_API_BASE_URL + 'device/control', headers=headers, json=payload)
|
||||
req.raise_for_status()
|
||||
print(req.json())
|
||||
|
||||
+2
-2
@@ -289,9 +289,9 @@ def run():
|
||||
last_switch = time.time()
|
||||
|
||||
while True:
|
||||
govee_api.set_diy_scene(GOVEE_DEVICE, GOVEE_SKU)
|
||||
govee_api.set_diy_scene(GOVEE_SKU, GOVEE_DEVICE)
|
||||
play_goal_celebration()
|
||||
govee_api.set_to_original_color(GOVEE_DEVICE, GOVEE_SKU)
|
||||
govee_api.set_to_original_color(GOVEE_SKU, GOVEE_DEVICE)
|
||||
|
||||
# while True:
|
||||
# now = time.time()
|
||||
|
||||
Reference in New Issue
Block a user