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 = requests.post(GOVEE_API_BASE_URL + 'device/control', headers=headers, json=payload)
|
||||||
req.raise_for_status()
|
req.raise_for_status()
|
||||||
print(req.json())
|
print(req.json())
|
||||||
|
|||||||
+2
-2
@@ -289,9 +289,9 @@ def run():
|
|||||||
last_switch = time.time()
|
last_switch = time.time()
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
govee_api.set_diy_scene(GOVEE_DEVICE, GOVEE_SKU)
|
govee_api.set_diy_scene(GOVEE_SKU, GOVEE_DEVICE)
|
||||||
play_goal_celebration()
|
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:
|
# while True:
|
||||||
# now = time.time()
|
# now = time.time()
|
||||||
|
|||||||
Reference in New Issue
Block a user